From c024b4667875e5bc6fd0ed791530e33c3161bff7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 8 Jun 2019 18:07:21 +0200 Subject: 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. --- src/ex_cmds2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ex_cmds2.c') diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 66e5fca128..3c73030e6b 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 -- cgit v1.2.3