Mercurial > vim
comparison src/undo.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 | ce04ebdf26b8 |
children | d03a52e02f1a |
comparison
equal
deleted
inserted
replaced
16995:6664cc1a0af4 | 16996:d5e1e09a829f |
---|---|
2803 else | 2803 else |
2804 #ifdef FEAT_NETBEANS_INTG | 2804 #ifdef FEAT_NETBEANS_INTG |
2805 /* per netbeans undo rules, keep it as modified */ | 2805 /* per netbeans undo rules, keep it as modified */ |
2806 if (!isNetbeansModified(curbuf)) | 2806 if (!isNetbeansModified(curbuf)) |
2807 #endif | 2807 #endif |
2808 unchanged(curbuf, FALSE); | 2808 unchanged(curbuf, FALSE, TRUE); |
2809 | 2809 |
2810 /* | 2810 /* |
2811 * restore marks from before undo/redo | 2811 * restore marks from before undo/redo |
2812 */ | 2812 */ |
2813 for (i = 0; i < NMARKS; ++i) | 2813 for (i = 0; i < NMARKS; ++i) |