Mercurial > vim
diff src/popupwin.c @ 16839:032d5335987e v8.1.1421
patch 8.1.1421: drawing "~" line in popup window
commit https://github.com/vim/vim/commit/1714696600f2859f897f4ffb33cedb5de09eded3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 30 00:12:11 2019 +0200
patch 8.1.1421: drawing "~" line in popup window
Problem: Drawing "~" line in popup window.
Solution: Just draw text in the last line of the popup window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 30 May 2019 00:15:05 +0200 |
parents | 18593056d8f1 |
children | cf630fab9fb6 |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -151,7 +151,7 @@ add_popup_dicts(buf_T *buf, list_T *l) /* * Adjust the position and size of the popup to fit on the screen. */ - static void + void popup_adjust_position(win_T *wp) { linenr_T lnum; @@ -209,6 +209,8 @@ popup_adjust_position(win_T *wp) wp->w_height = wp->w_maxheight; if (wp->w_height > Rows - wp->w_winrow) wp->w_height = Rows - wp->w_winrow; + + wp->w_popup_last_changedtick = CHANGEDTICK(wp->w_buffer); } /*