Mercurial > vim
diff src/testdir/test_popupwin.vim @ 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/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -41,11 +41,16 @@ func Test_simple_popup() call term_sendkeys(buf, ":quit!\<CR>") call VerifyScreenDump(buf, 'Test_popupwin_04', {}) - " resize popup + " resize popup, show empty line at bottom call term_sendkeys(buf, ":call popup_move(popupwin, {'minwidth': 15, 'maxwidth': 25, 'minheight': 3, 'maxheight': 5})\<CR>") call term_sendkeys(buf, ":redraw\<CR>") call VerifyScreenDump(buf, 'Test_popupwin_05', {}) + " show not fitting line at bottom + call term_sendkeys(buf, ":call setbufline(winbufnr(popupwin), 3, 'this line will not fit here')\<CR>") + call term_sendkeys(buf, ":redraw\<CR>") + call VerifyScreenDump(buf, 'Test_popupwin_06', {}) + " clean up call StopVimInTerminal(buf) call delete('XtestPopup')