changeset 2483:7901306c5a34 vim73

Fix: when setting crypt key seed was not updated when the swap file wasn't created yet.
author Bram Moolenaar <bram@vim.org>
date Wed, 04 Aug 2010 15:32:46 +0200
parents 88751831fa0a
children e037ee8698b3
files src/memline.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/memline.c
+++ b/src/memline.c
@@ -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