summaryrefslogtreecommitdiff
path: root/src/textprop.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-23 14:36:00 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-23 14:36:00 +0100
commit23999d799cfe844b604f193183f8f84052c8e746 (patch)
tree35d073cb39859acd906c9ac1c9fee90c251b2299 /src/textprop.c
parent4072ba571babd733d1800c082416fe8fe3c28ed7 (diff)
downloadvim-git-8.2.2198.tar.gz
patch 8.2.2198: ml_get error when resizing window and using text propertyv8.2.2198
Problem: ml_get error when resizing window and using text property. Solution: Validate botline of the right window. (closes #7528)
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 5a18f6c73..b6cae70a8 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -419,7 +419,7 @@ find_visible_prop(win_T *wp, int type_id, int id, textprop_T *prop,
int i;
// w_botline may not have been updated yet.
- validate_botline();
+ validate_botline_win(wp);
for (lnum = wp->w_topline; lnum < wp->w_botline; ++lnum)
{
count = get_text_props(wp->w_buffer, lnum, &props, FALSE);