0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0394: diffs are not always updated correctly

Problem:    Diffs are not always updated correctly.
Solution:   When using internal diff update for any changes properly.
This commit is contained in:
Bram Moolenaar
2018-09-16 14:10:31 +02:00
parent 785fc6567f
commit e3521d9cbb
6 changed files with 35 additions and 7 deletions

View File

@@ -1200,6 +1200,15 @@ main_loop(
}
#if defined(FEAT_DIFF)
// Updating diffs from changed() does not always work properly,
// esp. updating folds. Do an update just before redrawing if
// needed.
if (curtab->tp_diff_update || curtab->tp_diff_invalid)
{
ex_diffupdate(NULL);
curtab->tp_diff_update = FALSE;
}
/* Scroll-binding for diff mode may have been postponed until
* here. Avoids doing it for every change. */
if (diff_need_scrollbind)