patch 8.2.2860: adding a text property causes the whole window to be redawn
Problem: Adding a text property causes the whole window to be redawn.
Solution: Use changed_lines_buf() to only redraw the affected lines.
diff --git a/src/textprop.c b/src/textprop.c
index b626193..f11e1a3 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -345,7 +345,8 @@
}
buf->b_has_textprop = TRUE; // this is never reset
- redraw_buf_later(buf, NOT_VALID);
+ changed_lines_buf(buf, start_lnum, end_lnum + 1, 0);
+ redraw_buf_later(buf, VALID);
}
/*