aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-21 11:06:39 +0800
committerGitHub <noreply@github.com>2022-09-21 11:06:39 +0800
commit37a71d1f28e5d7fd13f0ede69b4d2558157a9e4b (patch)
tree33b2c0af45649fe007befe8f52d39d593dd46292 /src
parentad1f353fe1aeb54144a34d1a0de8e318bd5113aa (diff)
downloadrneovim-37a71d1f28e5d7fd13f0ede69b4d2558157a9e4b.tar.gz
rneovim-37a71d1f28e5d7fd13f0ede69b4d2558157a9e4b.tar.bz2
rneovim-37a71d1f28e5d7fd13f0ede69b4d2558157a9e4b.zip
vim-patch:9.0.0018: going over the end of the typahead (#20269)
Problem: Going over the end of the typahead. Solution: Put a NUL after the typeahead. https://github.com/vim/vim/commit/27efc62f5d86afcb2ecb7565587fe8dea4b036fe check_termcode() is N/A.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_mapping.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim
index 72c84b5356..d7bd53e421 100644
--- a/src/nvim/testdir/test_mapping.vim
+++ b/src/nvim/testdir/test_mapping.vim
@@ -1127,4 +1127,14 @@ func Test_map_after_timed_out_nop()
call delete('Xtest_map_after_timed_out_nop')
endfunc
+func Test_using_past_typeahead()
+ nnoremap :00 0
+ exe "norm :set \x80\xfb0=0\<CR>"
+ exe "sil norm :0\x0f\<C-U>\<CR>"
+
+ exe "norm :set \x80\xfb0=\<CR>"
+ nunmap :00
+endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab