From 4aa3473b8800df64aeec25012976e603ac66c9f6 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 16 Aug 2019 21:15:33 -0400 Subject: [PATCH] vim-patch:8.1.1857: cannot use modifier with multi-byte character Problem: Cannot use modifier with multi-byte character. Solution: Allow using a multi-byte character, although it doesn't work everywhere. https://github.com/vim/vim/commit/c8fd33d18b49c3246f33782dd7b4a1c87504dd5f --- src/nvim/testdir/test_mapping.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim index 9f253604ed..43bab8ae5c 100644 --- a/src/nvim/testdir/test_mapping.vim +++ b/src/nvim/testdir/test_mapping.vim @@ -229,6 +229,12 @@ func Test_map_meta_quotes() iunmap endfunc +func Test_map_meta_multibyte() + imap foo + call assert_equal('foo', maparg("\", 'i')) + iunmap +endfunc + func Test_abbr_after_line_join() new abbr foo bar @@ -282,7 +288,7 @@ func Test_map_timeout_with_timer_interrupt() let g:val = 0 nnoremap \12 :let g:val = 1 nnoremap \123 :let g:val = 2 - set timeout timeoutlen=1000 + set timeout timeoutlen=100 func ExitCb(job, status) let g:timer = timer_start(1, {_ -> feedkeys("3\", 't')})