1
0
forked from aniani/vim

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

@@ -3093,7 +3093,7 @@ changed_lines(
changed_lines_buf(curbuf, lnum, lnume, xtra);
#ifdef FEAT_DIFF
if (xtra == 0 && curwin->w_p_diff)
if (xtra == 0 && curwin->w_p_diff && !diff_internal())
{
/* When the number of lines doesn't change then mark_adjust() isn't
* called and other diff buffers still need to be marked for
@@ -3173,6 +3173,11 @@ changed_common(
/* mark the buffer as modified */
changed();
#ifdef FEAT_DIFF
if (curwin->w_p_diff && diff_internal())
curtab->tp_diff_update = TRUE;
#endif
/* set the '. mark */
if (!cmdmod.keepjumps)
{