changeset 24192:dced82a0e5b2 v8.2.2637

patch 8.2.2637: prop_remove() causes a redraw even when nothing changed Commit: https://github.com/vim/vim/commit/09f8b3a02200a1900a8bb41d7436f9d17ebd2d1b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 21 22:29:54 2021 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Mar 2021 22:30:03 +0100
parents a464593df512
children a926732fe169
files src/textprop.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -920,7 +920,8 @@ f_prop_remove(typval_T *argvars, typval_
 	    }
 	}
     }
-    redraw_buf_later(buf, NOT_VALID);
+    if (rettv->vval.v_number > 0)
+	redraw_buf_later(buf, NOT_VALID);
 }
 
 /*
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2637,
+/**/
     2636,
 /**/
     2635,