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:
@@ -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
|
||||
|
Reference in New Issue
Block a user