1
0
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:
Bram Moolenaar
2021-04-30 19:43:11 +02:00
parent aeed2a6359
commit 4934ed34c3
3 changed files with 25 additions and 1 deletions

View File

@@ -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