mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
vim-patch:8.2.0916: mapping with partly modifyOtherKeys code does not work
Problem: Mapping with partly modifyOtherKeys code does not work.
Solution: If there is no mapping with a separate modifier include the
modifier in the key and then try mapping again. (closes vim/vim#6200)
975a880a13
Cherry-pick applicable part of put_string_in_typebuf().
Revert related changes from 10a5825.
Use KEYLEN_PART_KEY for incomplete modifier sequence.
Omit test as it sends terminal codes. Use a Lua test instead.
This commit is contained in:
@@ -249,6 +249,14 @@ it('typing a simplifiable key at hit-enter prompt triggers mapping vim-patch:8.2
|
||||
]])
|
||||
end)
|
||||
|
||||
it('mixing simplified and unsimplified keys can trigger mapping vim-patch:8.2.0916', function()
|
||||
command('set timeoutlen=10')
|
||||
command([[imap ' <C-W>]])
|
||||
command('imap <C-W><C-A> c-a')
|
||||
feed([[a'<C-A>]])
|
||||
expect('c-a')
|
||||
end)
|
||||
|
||||
describe('input non-printable chars', function()
|
||||
after_each(function()
|
||||
os.remove('Xtest-overwrite')
|
||||
|
||||
Reference in New Issue
Block a user