aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/input_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-26 23:13:26 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-29 15:51:04 +0800
commit32da3e56cd12210cd567609f2ec7dd4f0c1ee4c6 (patch)
tree2ee70d1b7d6d6064519ffb3cc89a99cb8d43d515 /test/functional/ui/input_spec.lua
parentf6afc7c3246db6e5bd8feab717b3c0dbf0226803 (diff)
downloadrneovim-32da3e56cd12210cd567609f2ec7dd4f0c1ee4c6.tar.gz
rneovim-32da3e56cd12210cd567609f2ec7dd4f0c1ee4c6.tar.bz2
rneovim-32da3e56cd12210cd567609f2ec7dd4f0c1ee4c6.zip
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) https://github.com/vim/vim/commit/975a880a1389e8ce6dea8d66a7c109140b2f94ec 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.
Diffstat (limited to 'test/functional/ui/input_spec.lua')
-rw-r--r--test/functional/ui/input_spec.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua
index 799aad8d55..43b6c19b44 100644
--- a/test/functional/ui/input_spec.lua
+++ b/test/functional/ui/input_spec.lua
@@ -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')