comparison src/testdir/test_terminal.vim @ 19540:9f07a6c172f2 v8.2.0327

patch 8.2.0327: crash when opening and closing two popup terminal windows Commit: https://github.com/vim/vim/commit/80ae880f5fed8022c69d05dd1efee49259929cb5 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 28 19:11:18 2020 +0100 patch 8.2.0327: crash when opening and closing two popup terminal windows Problem: Crash when opening and closing two popup terminal windows. Solution: Check that prevwin is valid. (closes https://github.com/vim/vim/issues/5707)
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Feb 2020 19:15:04 +0100
parents 274052873790
children 9e428147e4ee
comparison
equal deleted inserted replaced
19539:a31e293bd464 19540:9f07a6c172f2
2389 2389
2390 call StopVimInTerminal(buf) 2390 call StopVimInTerminal(buf)
2391 call delete('XtermPopup') 2391 call delete('XtermPopup')
2392 endfunc 2392 endfunc
2393 2393
2394 func Test_double_popup_terminal()
2395 let buf1 = term_start(&shell, #{hidden: 1})
2396 let win1 = popup_create(buf1, {})
2397 let buf2 = term_start(&shell, #{hidden: 1})
2398 let win2 = popup_create(buf2, {})
2399 call popup_close(win1)
2400 call popup_close(win2)
2401 exe buf1 .. 'bwipe!'
2402 exe buf2 .. 'bwipe!'
2403 endfunc
2404
2394 func Test_issue_5607() 2405 func Test_issue_5607()
2395 let wincount = winnr('$') 2406 let wincount = winnr('$')
2396 exe 'terminal' &shell &shellcmdflag 'exit' 2407 exe 'terminal' &shell &shellcmdflag 'exit'
2397 let job = term_getjob(bufnr()) 2408 let job = term_getjob(bufnr())
2398 call WaitForAssert({-> assert_equal("dead", job_status(job))}) 2409 call WaitForAssert({-> assert_equal("dead", job_status(job))})