summaryrefslogtreecommitdiff
path: root/src/textprop.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-25 23:08:17 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-25 23:08:17 +0200
commit8e95636a282f3eac808c0e00c053b33334cc283e (patch)
treef2fdaf570a335324d8e861b68e2e632d32a0b07c /src/textprop.c
parent12034e22dd80cf533ac1c681be521ab299383f63 (diff)
downloadvim-git-8e95636a282f3eac808c0e00c053b33334cc283e.tar.gz
patch 8.1.1929: no tests for text property popup windowv8.1.1929
Problem: No tests for text property popup window. Solution: Add a few tests.
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c3
1 files changed, 1 insertions, 2 deletions
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);