func Test_terminal_qall_prompt()
CheckRunVimInTerminal
- " the shell may set the window title, we don't want that here
- call test_override('vterm_title', 1)
let buf = RunVimInTerminal('', {})
+ " the shell may set the window title, we don't want that here
+ call term_sendkeys(buf, ":test_override('vterm_title', 1)\<CR>")
+
" Open a terminal window and wait for the prompt to appear
call term_sendkeys(buf, ":term\<CR>")
call WaitForAssert({-> assert_match('\[running]', term_getline(buf, 10))})
" close the terminal window where Vim was running
quit
- call test_override('ALL', 0)
endfunc
" Run Vim in a terminal, then start a terminal window with a shell and check