diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 15:27:51 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 15:31:21 +0800 |
commit | d4b6a25e675639f799aa87213e247816d4279594 (patch) | |
tree | b47e1a98f4dde5118e34b76249a6203a473fcb64 | |
parent | ff801ce7f728ea51cec3328328ac41d98d545725 (diff) | |
download | rneovim-d4b6a25e675639f799aa87213e247816d4279594.tar.gz rneovim-d4b6a25e675639f799aa87213e247816d4279594.tar.bz2 rneovim-d4b6a25e675639f799aa87213e247816d4279594.zip |
vim-patch:8.2.2908: crash when using a terminal popup window from cmdline window
Problem: Crash when using a terminal popup window from the cmdline window.
Solution: Instead of checking cmdwin_type call cmdwin_is_active().
(closes vim/vim#8286)
https://github.com/vim/vim/commit/e5b4486c4279a9674a9bb76130b4db53fb9303a0
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | test/old/testdir/test_cmdline.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim index a1bfec58d7..a039ab95ca 100644 --- a/test/old/testdir/test_cmdline.vim +++ b/test/old/testdir/test_cmdline.vim @@ -1580,6 +1580,20 @@ func Test_cmdwin_restore() call delete('XTest_restore') endfunc +func Test_cmdwin_no_terminal() + CheckFeature cmdwin + CheckFeature terminal + + let buf = RunVimInTerminal('', {'rows': 12}) + call TermWait(buf, 50) + call term_sendkeys(buf, ":set cmdheight=2\<CR>") + call term_sendkeys(buf, "q:") + call term_sendkeys(buf, ":let buf = term_start(['/bin/echo'], #{hidden: 1})\<CR>") + call VerifyScreenDump(buf, 'Test_cmdwin_no_terminal', {}) + call term_sendkeys(buf, ":q\<CR>") + call StopVimInTerminal(buf) +endfunc + func Test_buffers_lastused() " check that buffers are sorted by time when wildmode has lastused edit bufc " oldest |