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.
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim
index 4c63bb8..19e6811 100644
--- a/src/testdir/test_normal.vim
+++ b/src/testdir/test_normal.vim
@@ -2546,11 +2546,16 @@
endfunc
func Test_message_when_using_ctrl_c()
+ " Make sure no buffers are changed.
+ %bwipe!
+
exe "normal \<C-C>"
call assert_match("Type :qa and press <Enter> to exit Vim", Screenline(&lines))
+
new
cal setline(1, 'hi!')
exe "normal \<C-C>"
call assert_match("Type :qa! and press <Enter> to abandon all changes and exit Vim", Screenline(&lines))
+
bwipe!
endfunc
diff --git a/src/version.c b/src/version.c
index 13db401..1f0fb6b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -776,6 +776,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1052,
+/**/
1051,
/**/
1050,