vim-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.
c024b46678
This commit is contained in:
Justin M. Keyes
2019-08-31 14:06:45 +02:00
parent d7aea13fee
commit 83c5701fe6
7 changed files with 26 additions and 22 deletions

View File

@@ -2294,7 +2294,7 @@ static void u_undoredo(int undo, bool do_buf_event)
if (old_flags & UH_CHANGED) {
changed();
} else {
unchanged(curbuf, FALSE);
unchanged(curbuf, false, true);
}
// because the calls to changed()/unchanged() above will bump changedtick