aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_messages.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-25 21:40:46 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-29 15:51:04 +0800
commit66747f18ded775e2c0b6bac73cee18a3752086af (patch)
treed0a25e517a61819d379115c7237080e284e90beb /src/nvim/testdir/test_messages.vim
parent82a13a78bb26e91d9f81231ab5e725129cfd8757 (diff)
downloadrneovim-66747f18ded775e2c0b6bac73cee18a3752086af.tar.gz
rneovim-66747f18ded775e2c0b6bac73cee18a3752086af.tar.bz2
rneovim-66747f18ded775e2c0b6bac73cee18a3752086af.zip
vim-patch:8.2.0839: dropping modifier when putting a character back in typeahead
Problem: Dropping modifier when putting a character back in typeahead. Solution: Add modifier to ins_char_typebuf(). (closes vim/vim#6158) https://github.com/vim/vim/commit/b42c0d54279b1fdb79652db0c84171e213458809 Vim's test doesn't seem to work properly as the hit-enter prompt seems to be delayed. Add a Lua screen test.
Diffstat (limited to 'src/nvim/testdir/test_messages.vim')
-rw-r--r--src/nvim/testdir/test_messages.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_messages.vim b/src/nvim/testdir/test_messages.vim
index 82c4cc128b..2e9b0a8531 100644
--- a/src/nvim/testdir/test_messages.vim
+++ b/src/nvim/testdir/test_messages.vim
@@ -112,6 +112,14 @@ func Test_echospace()
set ruler& showcmd&
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
+
func Test_quit_long_message()
CheckScreendump