comparison src/testdir/test_cmdline.vim @ 24739:68e3adbeaf20 v8.2.2908

patch 8.2.2908: crash when using a terminal popup window from cmdline window Commit: https://github.com/vim/vim/commit/e5b4486c4279a9674a9bb76130b4db53fb9303a0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 30 13:54:03 2021 +0200 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 #8286)
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 May 2021 14:00:05 +0200
parents a6e43da449af
children a2a789bffa9c
comparison
equal deleted inserted replaced
24738:cd3c2a881ff2 24739:68e3adbeaf20
1188 call VerifyScreenDump(buf, 'Test_cmdwin_restore_3', {}) 1188 call VerifyScreenDump(buf, 'Test_cmdwin_restore_3', {})
1189 1189
1190 " clean up 1190 " clean up
1191 call StopVimInTerminal(buf) 1191 call StopVimInTerminal(buf)
1192 call delete('XTest_restore') 1192 call delete('XTest_restore')
1193 endfunc
1194
1195 func Test_cmdwin_no_terminal()
1196 CheckFeature cmdwin
1197 CheckFeature terminal
1198
1199 let buf = RunVimInTerminal('', {'rows': 12})
1200 call TermWait(buf, 50)
1201 call term_sendkeys(buf, ":set cmdheight=2\<CR>")
1202 call term_sendkeys(buf, "q:")
1203 call term_sendkeys(buf, ":let buf = term_start(['/bin/echo'], #{hidden: 1})\<CR>")
1204 call VerifyScreenDump(buf, 'Test_cmdwin_no_terminal', {})
1205 call term_sendkeys(buf, ":q\<CR>")
1206 call StopVimInTerminal(buf)
1193 endfunc 1207 endfunc
1194 1208
1195 func Test_buffers_lastused() 1209 func Test_buffers_lastused()
1196 " check that buffers are sorted by time when wildmode has lastused 1210 " check that buffers are sorted by time when wildmode has lastused
1197 call test_settime(1550020000) " middle 1211 call test_settime(1550020000) " middle