forked from aniani/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.
This commit is contained in:
@@ -239,6 +239,12 @@ func Test_map_meta_quotes()
|
||||
iunmap <M-">
|
||||
endfunc
|
||||
|
||||
func Test_map_meta_multibyte()
|
||||
imap <M-á> foo
|
||||
call assert_equal('foo', maparg("\<M-á>", 'i'))
|
||||
iunmap <M-á>
|
||||
endfunc
|
||||
|
||||
func Test_abbr_after_line_join()
|
||||
new
|
||||
abbr foo bar
|
||||
@@ -292,7 +298,7 @@ func Test_map_timeout_with_timer_interrupt()
|
||||
let g:val = 0
|
||||
nnoremap \12 :let g:val = 1<CR>
|
||||
nnoremap \123 :let g:val = 2<CR>
|
||||
set timeout timeoutlen=1000
|
||||
set timeout timeoutlen=100
|
||||
|
||||
func ExitCb(job, status)
|
||||
let g:timer = timer_start(1, {-> feedkeys("3\<Esc>", 't')})
|
||||
|
Reference in New Issue
Block a user