# HG changeset patch # User Bram Moolenaar # Date 1553553005 -3600 # Node ID 4673f22da44dbe9d40681e9c327dec4e7ac1b9b6 # Parent bed3ace39db3ce51a7f691f63d9eb6858d8f9779 patch 8.1.1052: test for CTRL-C message sometimes fails commit https://github.com/vim/vim/commit/553e5a5c568e7d175b65b0472cd6d9843b25f4c8 Author: Bram Moolenaar Date: Mon Mar 25 23:16:34 2019 +0100 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 --- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -2546,11 +2546,16 @@ func Test_nv_hat_count() endfunc func Test_message_when_using_ctrl_c() + " Make sure no buffers are changed. + %bwipe! + exe "normal \" call assert_match("Type :qa and press to exit Vim", Screenline(&lines)) + new cal setline(1, 'hi!') exe "normal \" call assert_match("Type :qa! and press to abandon all changes and exit Vim", Screenline(&lines)) + bwipe! endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -776,6 +776,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1052, +/**/ 1051, /**/ 1050,