1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2021-05-16 20:18:57 +02:00
parent dcfc311198
commit 1764faa386
4 changed files with 6 additions and 2 deletions

View File

@@ -345,7 +345,8 @@ prop_add_common(
}
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);
}
/*