mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #16879 from zeertzjq/vim-8.2.3966
vim-patch:8.2.3966: when using feedkeys() abbreviations may be blocked
This commit is contained in:
commit
2559359035
@ -2304,6 +2304,10 @@ static int vgetorpeek(bool advance)
|
||||
c = ESC;
|
||||
}
|
||||
tc = c;
|
||||
|
||||
// no chars to block abbreviations for
|
||||
typebuf.tb_no_abbr_cnt = 0;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -12,3 +12,15 @@ func Test_feedkeys_x_with_empty_string()
|
||||
call assert_equal('foo', getline('.'))
|
||||
quit!
|
||||
endfunc
|
||||
|
||||
func Test_feedkeys_with_abbreviation()
|
||||
new
|
||||
inoreabbrev trigger value
|
||||
call feedkeys("atrigger ", 'x')
|
||||
call feedkeys("atrigger ", 'x')
|
||||
call assert_equal('value value ', getline(1))
|
||||
bwipe!
|
||||
iunabbrev trigger
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Loading…
Reference in New Issue
Block a user