aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_normal.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-07-29 20:59:38 +0200
committerGitHub <noreply@github.com>2019-07-29 20:59:38 +0200
commitbae02eb3968be1c9677283d030fbbe6dd02cb180 (patch)
tree826839463784f5464c8b4203eafc1c0d98205b91 /src/nvim/testdir/test_normal.vim
parent6e03f87e0991b5b0dfffa79ae580b87e40468da1 (diff)
parentd6b31721bfadabf5eaa817321706d403ecfbf805 (diff)
downloadrneovim-bae02eb3968be1c9677283d030fbbe6dd02cb180.tar.gz
rneovim-bae02eb3968be1c9677283d030fbbe6dd02cb180.tar.bz2
rneovim-bae02eb3968be1c9677283d030fbbe6dd02cb180.zip
Merge #10645 from janlazo/vim-8.1.0999
vim-patch:8.1.{1005,1041,1049,1052,1053,1086,1394}
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
-rw-r--r--src/nvim/testdir/test_normal.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim
index ef17209f74..945cd5a617 100644
--- a/src/nvim/testdir/test_normal.vim
+++ b/src/nvim/testdir/test_normal.vim
@@ -2552,6 +2552,21 @@ func Test_delete_until_paragraph()
bwipe!
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 Nvim", 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 Nvim", Screenline(&lines))
+
+ bwipe!
+endfunc
+
" Test for '[m', ']m', '[M' and ']M'
" Jumping to beginning and end of methods in Java-like languages
func Test_java_motion()