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.
diff --git a/src/undo.c b/src/undo.c
index cf3f866..dd46670 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -2805,7 +2805,7 @@
/* 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