Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 16894:236c182c6300 v8.1.1448
patch 8.1.1448: statusline is sometimes drawn on top of popup
commit https://github.com/vim/vim/commit/988c43310a8dcfad9fbacd110b50ba220227d19a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 2 14:12:11 2019 +0200
patch 8.1.1448: statusline is sometimes drawn on top of popup
Problem: Statusline is sometimes drawn on top of popup.
Solution: Redraw popups after the statusline. (Naruhiko Nishino,
closes #4468)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Jun 2019 14:15:06 +0200 |
parents | 60c9ac14a2ec |
children | 52fc577a087d |
comparison
equal
deleted
inserted
replaced
16893:7277e70d5dab | 16894:236c182c6300 |
---|---|
608 redraw | 608 redraw |
609 let pos = popup_getpos(winid) | 609 let pos = popup_getpos(winid) |
610 call assert_equal(2, pos.width) | 610 call assert_equal(2, pos.width) |
611 call assert_equal(3, pos.height) | 611 call assert_equal(3, pos.height) |
612 endfunc | 612 endfunc |
613 | |
614 func Test_popup_never_behind() | |
615 if !CanRunVimInTerminal() | |
616 return | |
617 endif | |
618 " +-----------------------------+ | |
619 " | | | | |
620 " | | | | |
621 " | | | | |
622 " | line1 | | |
623 " |------------line2------------| | |
624 " | line3 | | |
625 " | line4 | | |
626 " | | | |
627 " | | | |
628 " +-----------------------------+ | |
629 let lines =<< trim END | |
630 only | |
631 split | |
632 vsplit | |
633 let info_window1 = getwininfo()[0] | |
634 let line = info_window1['height'] | |
635 let col = info_window1['width'] | |
636 call popup_create(['line1', 'line2', 'line3', 'line4'], { | |
637 \ 'line' : line, | |
638 \ 'col' : col, | |
639 \ }) | |
640 END | |
641 call writefile(lines, 'XtestPopupBehind') | |
642 let buf = RunVimInTerminal('-S XtestPopupBehind', {'rows': 10}) | |
643 call term_sendkeys(buf, "\<C-W>w") | |
644 call VerifyScreenDump(buf, 'Test_popupwin_behind', {}) | |
645 | |
646 " clean up | |
647 call StopVimInTerminal(buf) | |
648 call delete('XtestPopupBehind') | |
649 endfunc |