1
0
forked from aniani/vim

patch 8.2.2637: prop_remove() causes a redraw even when nothing changed

Problem:    prop_remove() causes a redraw even when nothing changed.
Solution:   Only redraw if a property was removed.
This commit is contained in:
Bram Moolenaar
2021-03-21 22:29:54 +01:00
parent 67da21a147
commit 09f8b3a022
2 changed files with 4 additions and 1 deletions

View File

@@ -920,7 +920,8 @@ f_prop_remove(typval_T *argvars, typval_T *rettv)
} }
} }
} }
redraw_buf_later(buf, NOT_VALID); if (rettv->vval.v_number > 0)
redraw_buf_later(buf, NOT_VALID);
} }
/* /*

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2637,
/**/ /**/
2636, 2636,
/**/ /**/