diff src/textprop.c @ 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 90ea5037a7e3
children 55631f8e0730
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);
 }
 
 /*