diff options
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index a028b22a5c..17490ac21a 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2944,6 +2944,7 @@ check_for_cryptkey(cryptkey, ptr, sizep, filesizep, newfile, fname, did_ask) * Avoids accidentally overwriting the file with garbage. */ curbuf->b_p_ro = TRUE; + /* Set the cryptmethod local to the buffer. */ crypt_set_cm_option(curbuf, method); if (cryptkey == NULL && !*did_ask) { |