diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-28 22:20:10 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-28 22:20:10 +0100 |
commit | e52e0c89d1a6305beca3c01f89a4892dcb43bc71 (patch) | |
tree | d54216cc94ae0eb3c8a737b3298be99b9360297c /src/testdir/test_terminal.vim | |
parent | 80ae880f5fed8022c69d05dd1efee49259929cb5 (diff) | |
download | vim-git-e52e0c89d1a6305beca3c01f89a4892dcb43bc71.tar.gz |
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminalv8.2.0328
Problem: No redraw when leaving terminal-normal mode in a terminal popup
window.
Solution: Redraw the popup window. (closes #5708)
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r-- | src/testdir/test_terminal.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index fb717f603..e2d759546 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -2382,8 +2382,16 @@ func Test_terminal_in_popup() call term_sendkeys(buf, "\<C-W>:call ReopenPopup()\<CR>") call VerifyScreenDump(buf, 'Test_terminal_popup_6', {}) - call term_wait(buf, 100) + " Go to terminal-Normal mode and visually select text. + call term_sendkeys(buf, "\<C-W>Ngg/in\<CR>vww") + call VerifyScreenDump(buf, 'Test_terminal_popup_7', {}) + + " Back to job mode, redraws + call term_sendkeys(buf, "A") + call VerifyScreenDump(buf, 'Test_terminal_popup_8', {}) + + call term_wait(buf, 100) call term_sendkeys(buf, ":q\<CR>") call term_wait(buf, 100) " wait for terminal to vanish |