forked from aniani/vim
patch 8.2.2819: finishing an abbreviation with multi-byte char may not work
Problem: Finishing an abbreviation with a multi-byte char may not work. Solution: Escape K_SPECIAL in the typed character. (closes #8160)
This commit is contained in:
@@ -1402,4 +1402,13 @@ func Test_script_local_remap()
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_abbreviate_multi_byte()
|
||||
new
|
||||
iabbrev foo bar
|
||||
call feedkeys("ifoo…\<Esc>", 'xt')
|
||||
call assert_equal("bar…", getline(1))
|
||||
iunabbrev foo
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user