Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
16838:2185324ec26b | 16839:032d5335987e |
---|---|
39 | 39 |
40 " close that tabpage | 40 " close that tabpage |
41 call term_sendkeys(buf, ":quit!\<CR>") | 41 call term_sendkeys(buf, ":quit!\<CR>") |
42 call VerifyScreenDump(buf, 'Test_popupwin_04', {}) | 42 call VerifyScreenDump(buf, 'Test_popupwin_04', {}) |
43 | 43 |
44 " resize popup | 44 " resize popup, show empty line at bottom |
45 call term_sendkeys(buf, ":call popup_move(popupwin, {'minwidth': 15, 'maxwidth': 25, 'minheight': 3, 'maxheight': 5})\<CR>") | 45 call term_sendkeys(buf, ":call popup_move(popupwin, {'minwidth': 15, 'maxwidth': 25, 'minheight': 3, 'maxheight': 5})\<CR>") |
46 call term_sendkeys(buf, ":redraw\<CR>") | 46 call term_sendkeys(buf, ":redraw\<CR>") |
47 call VerifyScreenDump(buf, 'Test_popupwin_05', {}) | 47 call VerifyScreenDump(buf, 'Test_popupwin_05', {}) |
48 | |
49 " show not fitting line at bottom | |
50 call term_sendkeys(buf, ":call setbufline(winbufnr(popupwin), 3, 'this line will not fit here')\<CR>") | |
51 call term_sendkeys(buf, ":redraw\<CR>") | |
52 call VerifyScreenDump(buf, 'Test_popupwin_06', {}) | |
48 | 53 |
49 " clean up | 54 " clean up |
50 call StopVimInTerminal(buf) | 55 call StopVimInTerminal(buf) |
51 call delete('XtestPopup') | 56 call delete('XtestPopup') |
52 endfunc | 57 endfunc |