File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ endfunc
81
81
" Stop a Vim running in terminal buffer "buf".
82
82
func StopVimInTerminal (buf )
83
83
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
+
85
89
call WaitForAssert ({- > assert_equal (" finished" , term_getstatus (a: buf ))})
86
90
only !
87
91
endfunc
Original file line number Diff line number Diff line change @@ -34,9 +34,12 @@ func Test_prompt_basic()
34
34
\ ' func TimerFunc(text)' ,
35
35
\ ' " Add the output above the current prompt.' ,
36
36
\ ' call append(line("$") - 1, "Result: \"" . a:text . "\"")' ,
37
+ \ ' " Reset &modified to allow the buffer to be closed.' ,
38
+ \ ' set nomodified' ,
37
39
\ ' endfunc' ,
38
40
\ ' ' ,
39
41
\ ' call setline(1, "other buffer")' ,
42
+ \ ' set nomodified' ,
40
43
\ ' new' ,
41
44
\ ' set buftype=prompt' ,
42
45
\ ' call prompt_setcallback(bufnr(""), function("TextEntered"))' ,
Original file line number Diff line number Diff line change @@ -761,6 +761,8 @@ static char *(features[]) =
761
761
762
762
static int included_patches [] =
763
763
{ /* Add new patch number below this line */
764
+ /**/
765
+ 30 ,
764
766
/**/
765
767
29 ,
766
768
/**/
You can’t perform that action at this time.
0 commit comments