0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1498: ":write" increments b:changedtick even though nothing changed

Problem:    ":write" increments b:changedtick even though nothing changed.
            (Daniel Hahler)
Solution:   Only increment b:changedtick if the modified flag is reset.
This commit is contained in:
Bram Moolenaar
2019-06-08 18:07:21 +02:00
parent aef5c62a6f
commit c024b46678
9 changed files with 26 additions and 16 deletions

View File

@@ -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