File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ endfunc
8181" Stop a Vim running in terminal buffer "buf".
8282func StopVimInTerminal (buf )
8383 call assert_equal (" running" , term_getstatus (a: buf ))
84- call term_sendkeys (a: buf , " \<Esc> :qa!\<cr> " )
84+
85+ " CTRL-O : works both in Normal mode and Insert mode to start a command line.
86+ " In Command-line it's inserted, the CTRL-U removes it again.
87+ call term_sendkeys (a: buf , " \<C-O>\<C-U> :qa!\<cr> " )
88+
8589 call WaitForAssert ({- > assert_equal (" finished" , term_getstatus (a: buf ))})
8690 only !
8791endfunc
Original file line number Diff line number Diff line change @@ -34,9 +34,12 @@ func Test_prompt_basic()
3434 \ ' func TimerFunc(text)' ,
3535 \ ' " Add the output above the current prompt.' ,
3636 \ ' call append(line("$") - 1, "Result: \"" . a:text . "\"")' ,
37+ \ ' " Reset &modified to allow the buffer to be closed.' ,
38+ \ ' set nomodified' ,
3739 \ ' endfunc' ,
3840 \ ' ' ,
3941 \ ' call setline(1, "other buffer")' ,
42+ \ ' set nomodified' ,
4043 \ ' new' ,
4144 \ ' set buftype=prompt' ,
4245 \ ' call prompt_setcallback(bufnr(""), function("TextEntered"))' ,
Original file line number Diff line number Diff line change @@ -761,6 +761,8 @@ static char *(features[]) =
761761
762762static int included_patches [] =
763763{ /* Add new patch number below this line */
764+ /**/
765+ 30 ,
764766/**/
765767 29 ,
766768/**/
You can’t perform that action at this time.
0 commit comments