Mercurial > vim
changeset 16095:4673f22da44d v8.1.1052
patch 8.1.1052: test for CTRL-C message sometimes fails
commit https://github.com/vim/vim/commit/553e5a5c568e7d175b65b0472cd6d9843b25f4c8
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Mar 2019 23:30:05 +0100 |
parents | bed3ace39db3 |
children | 4b95b97c09ec |
files | src/testdir/test_normal.vim src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 \<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