From: Bram Moolenaar Date: Sun, 21 Mar 2021 21:29:54 +0000 (+0100) Subject: patch 8.2.2637: prop_remove() causes a redraw even when nothing changed X-Git-Tag: v8.2.2637 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09f8b3a02200a1900a8bb41d7436f9d17ebd2d1b;p=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. --- diff --git a/src/textprop.c b/src/textprop.c index b6cae70a8..d6782342d 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -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); } /* diff --git a/src/version.c b/src/version.c index bdc23a400..399539d8c 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2637, /**/ 2636, /**/