diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-01 11:59:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-01 11:59:00 +0100 |
commit | 614ab8aa00346724bfc27980d25985d482269b75 (patch) | |
tree | fe9a1080eaf1ba90dac24b15585e4ac14fab8aee /src/testdir/test_popup.vim | |
parent | 07dc18ffa4e7ed202f219fe2fd3d6f58246f71f9 (diff) |
patch 8.1.0554: popup menu overlaps with preview windowv8.1.0554
Problem: Popup menu overlaps with preview window.
Solution: Adjust the height computation. (Hirohito Higashi, closes #3414)
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r-- | src/testdir/test_popup.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 9c25687ad3..287d59d901 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -701,6 +701,28 @@ func Test_popup_and_preview_autocommand() bw! endfunc +func Test_popup_and_previewwindow_dump() + if !CanRunVimInTerminal() + return + endif + call writefile([ + \ 'set previewheight=9', + \ 'silent! pedit', + \ 'call setline(1, map(repeat(["ab"], 10), "v:val. v:key"))', + \ 'exec "norm! G\<C-E>\<C-E>"', + \ ], 'Xscript') + let buf = RunVimInTerminal('-S Xscript', {}) + + " Test that popup and previewwindow do not overlap. + call term_sendkeys(buf, "o\<C-X>\<C-N>") + sleep 100m + call VerifyScreenDump(buf, 'Test_popup_and_previewwindow_01', {}) + + call term_sendkeys(buf, "\<Esc>u") + call StopVimInTerminal(buf) + call delete('Xscript') +endfunc + func Test_balloon_split() if !exists('*balloon_split') return |