summaryrefslogtreecommitdiff
path: root/src/testdir/test_messages.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_messages.vim')
-rw-r--r--src/testdir/test_messages.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim
index e07624160..b74ad2cb5 100644
--- a/src/testdir/test_messages.vim
+++ b/src/testdir/test_messages.vim
@@ -2,6 +2,7 @@
source shared.vim
source term_util.vim
+source view_util.vim
func Test_messages()
let oldmore = &more
@@ -305,4 +306,12 @@ func Test_null()
endif
endfunc
+func Test_mapping_at_hit_return_prompt()
+ nnoremap <C-B> :echo "hit ctrl-b"<CR>
+ call feedkeys(":ls\<CR>", "xt")
+ call feedkeys("\<C-B>", "xt")
+ call assert_match('hit ctrl-b', Screenline(&lines - 1))
+ nunmap <C-B>
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab