mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
Fix: when setting crypt key seed was not updated when the swap file wasn't
created yet.
This commit is contained in:
@@ -478,7 +478,7 @@ ml_set_crypt_key(buf, old_key, old_cm)
|
||||
blocknr_T bnum;
|
||||
int top;
|
||||
|
||||
if (mfp == NULL || mfp->mf_fd < 0)
|
||||
if (mfp == NULL)
|
||||
return; /* no memfile yet, nothing to do */
|
||||
|
||||
/* Set the key, method and seed to be used for reading, these must be the
|
||||
|
Reference in New Issue
Block a user