# HG changeset patch # User Bram Moolenaar # Date 1280928766 -7200 # Node ID 7901306c5a34c3cf1c72675a67391ebb47885612 # Parent 88751831fa0a9f87ce3a500af89d805d590f8dcc Fix: when setting crypt key seed was not updated when the swap file wasn't created yet. diff --git a/src/memline.c b/src/memline.c --- 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