mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.0.0018: going over the end of the typahead
Problem: Going over the end of the typahead. Solution: Put a NUL after the typeahead.
This commit is contained in:
parent
3d51ce18ab
commit
27efc62f5d
@ -5393,6 +5393,7 @@ check_termcode(
|
|||||||
if (*tp == ESC && !p_ek && (State & MODE_INSERT))
|
if (*tp == ESC && !p_ek && (State & MODE_INSERT))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
tp[len] = NUL;
|
||||||
key_name[0] = NUL; // no key name found yet
|
key_name[0] = NUL; // no key name found yet
|
||||||
key_name[1] = NUL; // no key name found yet
|
key_name[1] = NUL; // no key name found yet
|
||||||
modifiers = 0; // no modifiers yet
|
modifiers = 0; // no modifiers yet
|
||||||
|
@ -1715,4 +1715,14 @@ func Test_map_after_timed_out_nop()
|
|||||||
call delete('Xtest_map_after_timed_out_nop')
|
call delete('Xtest_map_after_timed_out_nop')
|
||||||
endfunc
|
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
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
18,
|
||||||
/**/
|
/**/
|
||||||
17,
|
17,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user