summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-08 18:07:21 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-08 18:07:21 +0200
commitc024b4667875e5bc6fd0ed791530e33c3161bff7 (patch)
tree4b7c358c24cb5f5d6d36a40250afbd44eaf6dda7 /src/ex_cmds2.c
parentaef5c62a6fff7654bb8df7b9359e811f7a6e428f (diff)
downloadvim-git-c024b4667875e5bc6fd0ed791530e33c3161bff7.tar.gz
patch 8.1.1498: ":write" increments b:changedtick even though nothing changedv8.1.1498
Problem: ":write" increments b:changedtick even though nothing changed. (Daniel Hahler) Solution: Only increment b:changedtick if the modified flag is reset.
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 66e5fca12..3c73030e6 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -1197,7 +1197,7 @@ dialog_changed(
}
else if (ret == VIM_NO)
{
- unchanged(buf, TRUE);
+ unchanged(buf, TRUE, FALSE);
}
else if (ret == VIM_ALL)
{
@@ -1240,7 +1240,7 @@ dialog_changed(
* mark all buffers as unchanged
*/
FOR_ALL_BUFFERS(buf2)
- unchanged(buf2, TRUE);
+ unchanged(buf2, TRUE, FALSE);
}
}
#endif