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 b6cae70..d678234 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -920,7 +920,8 @@
}
}
}
- 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 bdc23a4..399539d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2637,
+/**/
2636,
/**/
2635,