mirror of
https://github.com/vim/vim.git
synced 2025-10-08 06:04:08 -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:
@@ -1435,7 +1435,7 @@ ml_recover(int checkext)
|
||||
set_option_value((char_u *)"fenc", 0L, b0_fenc, OPT_LOCAL);
|
||||
vim_free(b0_fenc);
|
||||
}
|
||||
unchanged(curbuf, TRUE);
|
||||
unchanged(curbuf, TRUE, TRUE);
|
||||
|
||||
bnum = 1; /* start with block 1 */
|
||||
page_count = 1; /* which is 1 page */
|
||||
|
Reference in New Issue
Block a user