summaryrefslogtreecommitdiff
path: root/src/optionstr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-15 22:30:38 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-15 22:30:38 +0200
commit76cb68309794def0fa7d1f2f72dd694b822186a5 (patch)
tree214f144d8da9e075c248a1b8218b2526de887a22 /src/optionstr.c
parent4aeeb6393824e375afad4d7291e8552917ad28b8 (diff)
downloadvim-git-76cb68309794def0fa7d1f2f72dd694b822186a5.tar.gz
patch 8.2.0762: buffer is not considered modified after setting crypt keyv8.2.0762
Problem: Buffer is not considered modified after setting crypt key. Solution: Set the modified flag. (Christian Brabandt, closes #6082)
Diffstat (limited to 'src/optionstr.c')
-rw-r--r--src/optionstr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/optionstr.c b/src/optionstr.c
index 17613a656..ff0186f42 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -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)