Mercurial > vim
comparison src/testdir/test_terminal.vim @ 19542:9e428147e4ee v8.2.0328
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
Commit: https://github.com/vim/vim/commit/e52e0c89d1a6305beca3c01f89a4892dcb43bc71
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 28 22:20:10 2020 +0100
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
Problem: No redraw when leaving terminal-normal mode in a terminal popup
window.
Solution: Redraw the popup window. (closes #5708)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Feb 2020 22:30:09 +0100 |
parents | 9f07a6c172f2 |
children | d9b365f791d5 |
comparison
equal
deleted
inserted
replaced
19541:80dd4d7df929 | 19542:9e428147e4ee |
---|---|
2380 call term_sendkeys(buf, "\<C-W>:call ClosePopup()\<CR>") | 2380 call term_sendkeys(buf, "\<C-W>:call ClosePopup()\<CR>") |
2381 call VerifyScreenDump(buf, 'Test_terminal_popup_5', {}) | 2381 call VerifyScreenDump(buf, 'Test_terminal_popup_5', {}) |
2382 | 2382 |
2383 call term_sendkeys(buf, "\<C-W>:call ReopenPopup()\<CR>") | 2383 call term_sendkeys(buf, "\<C-W>:call ReopenPopup()\<CR>") |
2384 call VerifyScreenDump(buf, 'Test_terminal_popup_6', {}) | 2384 call VerifyScreenDump(buf, 'Test_terminal_popup_6', {}) |
2385 | |
2386 " Go to terminal-Normal mode and visually select text. | |
2387 call term_sendkeys(buf, "\<C-W>Ngg/in\<CR>vww") | |
2388 call VerifyScreenDump(buf, 'Test_terminal_popup_7', {}) | |
2389 | |
2390 " Back to job mode, redraws | |
2391 call term_sendkeys(buf, "A") | |
2392 call VerifyScreenDump(buf, 'Test_terminal_popup_8', {}) | |
2393 | |
2385 call term_wait(buf, 100) | 2394 call term_wait(buf, 100) |
2386 | |
2387 call term_sendkeys(buf, ":q\<CR>") | 2395 call term_sendkeys(buf, ":q\<CR>") |
2388 call term_wait(buf, 100) " wait for terminal to vanish | 2396 call term_wait(buf, 100) " wait for terminal to vanish |
2389 | 2397 |
2390 call StopVimInTerminal(buf) | 2398 call StopVimInTerminal(buf) |
2391 call delete('XtermPopup') | 2399 call delete('XtermPopup') |