1
0
forked from aniani/vim

patch 8.2.0762: buffer is not considered modified after setting crypt key

Problem:    Buffer is not considered modified after setting crypt key.
Solution:   Set the modified flag. (Christian Brabandt, closes #6082)
This commit is contained in:
Bram Moolenaar
2020-05-15 22:30:38 +02:00
parent 4aeeb63938
commit 76cb683097
3 changed files with 31 additions and 0 deletions

View File

@@ -1157,8 +1157,11 @@ did_set_string_option(
if (STRCMP(curbuf->b_p_key, oldval) != 0)
// Need to update the swapfile.
{
ml_set_crypt_key(curbuf, oldval,
*curbuf->b_p_cm == NUL ? p_cm : curbuf->b_p_cm);
changed_internal();
}
}
else if (gvarp == &p_cm)