From 04a437b280b13bd33c37e99c46403198126d5343 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 27 Apr 2022 16:54:59 +0800 Subject: vim-patch:8.2.4504: when there is a partially matching map full map may not work Problem: When there is a partially matching map and modifyOtherKeys is active a full map may not work. Solution: Only simplify modifiers when there is no matching mapping. (closes vim/vim#8792) https://github.com/vim/vim/commit/196c3850dbe95247f7aa1b0000a5cae625a99ef2 Omit test as it sends terminal codes. Use a Lua test instead. --- test/functional/ui/input_spec.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/functional/ui') diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua index d137049d55..25fc9cdcd1 100644 --- a/test/functional/ui/input_spec.lua +++ b/test/functional/ui/input_spec.lua @@ -275,6 +275,17 @@ it('mixing simplified and unsimplified keys can trigger mapping vim-patch:8.2.09 expect('c-a') end) +it('unsimplified mapping works when there was a partial match vim-patch:8.2.4504', function() + command('set timeoutlen=10') + command('nnoremap a') + command('nnoremap x') + command('nnoremap x ') + funcs.setline(1, 'x') + -- CTRL-J b should have trigger the mapping and then insert "b" + feed('b') + expect('xb') +end) + describe('input non-printable chars', function() after_each(function() os.remove('Xtest-overwrite') -- cgit