Mercurial > vim
comparison src/textprop.c @ 17865:eaf8b21d80e7 v8.1.1929
patch 8.1.1929: no tests for text property popup window
Commit: https://github.com/vim/vim/commit/8e95636a282f3eac808c0e00c053b33334cc283e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 25 23:08:17 2019 +0200
patch 8.1.1929: no tests for text property popup window
Problem: No tests for text property popup window.
Solution: Add a few tests.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Aug 2019 23:15:03 +0200 |
parents | 08f1dd29550e |
children | 4fd68dcf6d88 |
comparison
equal
deleted
inserted
replaced
17864:2887514e731f | 17865:eaf8b21d80e7 |
---|---|
394 char_u *props; | 394 char_u *props; |
395 int count; | 395 int count; |
396 int i; | 396 int i; |
397 | 397 |
398 // w_botline may not have been updated yet. | 398 // w_botline may not have been updated yet. |
399 if (wp->w_botline > wp->w_buffer->b_ml.ml_line_count) | 399 validate_botline(); |
400 wp->w_botline = wp->w_buffer->b_ml.ml_line_count + 1; | |
401 for (lnum = wp->w_topline; lnum < wp->w_botline; ++lnum) | 400 for (lnum = wp->w_topline; lnum < wp->w_botline; ++lnum) |
402 { | 401 { |
403 count = get_text_props(wp->w_buffer, lnum, &props, FALSE); | 402 count = get_text_props(wp->w_buffer, lnum, &props, FALSE); |
404 for (i = 0; i < count; ++i) | 403 for (i = 0; i < count; ++i) |
405 { | 404 { |