From 8e95636a282f3eac808c0e00c053b33334cc283e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 25 Aug 2019 23:08:17 +0200 Subject: patch 8.1.1929: no tests for text property popup window Problem: No tests for text property popup window. Solution: Add a few tests. --- src/textprop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/textprop.c') diff --git a/src/textprop.c b/src/textprop.c index 7947d348f..cc95546e2 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -396,8 +396,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. - if (wp->w_botline > wp->w_buffer->b_ml.ml_line_count) - wp->w_botline = wp->w_buffer->b_ml.ml_line_count + 1; + validate_botline(); for (lnum = wp->w_topline; lnum < wp->w_botline; ++lnum) { count = get_text_props(wp->w_buffer, lnum, &props, FALSE); -- cgit v1.2.1