1
0
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:
Bram Moolenaar
2019-03-25 23:16:34 +01:00
parent a4c2a24cc7
commit 553e5a5c56
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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,
/**/ /**/