Mercurial > vim
diff src/testdir/test_popupwin.vim @ 19166:215793f6b59d v8.2.0142
patch 8.2.0142: possible to enter popup window with CTRL-W p
Commit: https://github.com/vim/vim/commit/8bf716cdba0e48f56b8bfcbed0f4c702a705e095
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 23 15:33:54 2020 +0100
patch 8.2.0142: possible to enter popup window with CTRL-W p
Problem: Possible to enter popup window with CTRL-W p. (John Devin)
Solution: Check entered window is not a popup window. (closes https://github.com/vim/vim/issues/5515)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Jan 2020 15:45:04 +0100 |
parents | 17722555af22 |
children | c53dbbf3229b |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -2804,6 +2804,12 @@ func Test_previewpopup() call term_sendkeys(buf, ":\<CR>") call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_8', {}) + call term_sendkeys(buf, "\<C-W>p") + call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_9', {}) + + call term_sendkeys(buf, ":call win_execute(popup_findpreview(), 'call popup_clear()')\<CR>") + call VerifyScreenDump(buf, 'Test_popupwin_previewpopup_10', {}) + call StopVimInTerminal(buf) call delete('Xtags') call delete('Xtagfile')