summaryrefslogtreecommitdiff
path: root/src/undo.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/undo.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/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c
index cf3f866e8..dd4667001 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -2805,7 +2805,7 @@ u_undoredo(int undo)
/* per netbeans undo rules, keep it as modified */
if (!isNetbeansModified(curbuf))
#endif
- unchanged(curbuf, FALSE);
+ unchanged(curbuf, FALSE, TRUE);
/*
* restore marks from before undo/redo