forked from aniani/vim
patch 8.1.1052: test for CTRL-C message sometimes fails
Problem: test for CTRL-C message sometimes fails Solution: Make sure there are no changed buffers.
This commit is contained in:
@@ -2546,11 +2546,16 @@ func Test_nv_hat_count()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_message_when_using_ctrl_c()
|
func Test_message_when_using_ctrl_c()
|
||||||
|
" Make sure no buffers are changed.
|
||||||
|
%bwipe!
|
||||||
|
|
||||||
exe "normal \<C-C>"
|
exe "normal \<C-C>"
|
||||||
call assert_match("Type :qa and press <Enter> to exit Vim", Screenline(&lines))
|
call assert_match("Type :qa and press <Enter> to exit Vim", Screenline(&lines))
|
||||||
|
|
||||||
new
|
new
|
||||||
cal setline(1, 'hi!')
|
cal setline(1, 'hi!')
|
||||||
exe "normal \<C-C>"
|
exe "normal \<C-C>"
|
||||||
call assert_match("Type :qa! and press <Enter> to abandon all changes and exit Vim", Screenline(&lines))
|
call assert_match("Type :qa! and press <Enter> to abandon all changes and exit Vim", Screenline(&lines))
|
||||||
|
|
||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -775,6 +775,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1052,
|
||||||
/**/
|
/**/
|
||||||
1051,
|
1051,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user