Mercurial > vim
diff src/ex_cmds2.c @ 16996:d5e1e09a829f v8.1.1498
patch 8.1.1498: ":write" increments b:changedtick even though nothing changed
commit https://github.com/vim/vim/commit/c024b4667875e5bc6fd0ed791530e33c3161bff7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 8 18:07:21 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jun 2019 18:15:05 +0200 |
parents | da5f5836e90c |
children | af861fccc309 |
line wrap: on
line diff
--- 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