Problem: Cannot use modifier with multi-byte character.
Solution: Allow using a multi-byte character, although it doesn't work
everywhere.
l = mb_ptr2len(bp + 1);
else
l = 1;
- /* Anything accepted, like <C-?>.
- * <C-"> or <M-"> are not special in strings as " is
- * the string delimiter. With a backslash it works: <M-\"> */
- if (!(in_string && bp[1] == '"') && bp[2] == '>')
+ // Anything accepted, like <C-?>.
+ // <C-"> or <M-"> are not special in strings as " is
+ // the string delimiter. With a backslash it works: <M-\">
+ if (!(in_string && bp[1] == '"') && bp[l + 1] == '>')
bp += l;
else if (in_string && bp[1] == '\\' && bp[2] == '"'
&& bp[3] == '>')
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
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')})
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1857,
/**/
1856,
/**/