summaryrefslogtreecommitdiff
path: root/src/change.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-05-16 20:18:57 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-16 20:18:57 +0200
commit1764faa38645a559172e9a31f08447385835de81 (patch)
treea99cd5381e3277ed7563664f9461be31aecb1048 /src/change.c
parentdcfc311198b174468c007ec4b5b22b33c2c11c92 (diff)
downloadvim-git-1764faa38645a559172e9a31f08447385835de81.tar.gz
patch 8.2.2860: adding a text property causes the whole window to be redawnv8.2.2860
Problem: Adding a text property causes the whole window to be redawn. Solution: Use changed_lines_buf() to only redraw the affected lines.
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/change.c b/src/change.c
index 50dc10543..248e6d848 100644
--- a/src/change.c
+++ b/src/change.c
@@ -758,7 +758,7 @@ deleted_lines_mark(linenr_T lnum, long count)
/*
* Marks the area to be redrawn after a change.
*/
- static void
+ void
changed_lines_buf(
buf_T *buf,
linenr_T lnum, // first line with change