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