Mercurial > vim
comparison src/testdir/test_mapping.vim @ 24559:839145e0fdaa v8.2.2819
patch 8.2.2819: finishing an abbreviation with multi-byte char may not work
Commit: https://github.com/vim/vim/commit/4934ed34c3e2090d1963c89c629cd3ce81d3ecd1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 30 19:43:11 2021 +0200
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 https://github.com/vim/vim/issues/8160)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 30 Apr 2021 19:45:04 +0200 |
parents | fe4b6fc7149c |
children | 1186160ecf57 |
comparison
equal
deleted
inserted
replaced
24558:9a6a4aa70490 | 24559:839145e0fdaa |
---|---|
1400 normal iabc | 1400 normal iabc |
1401 call assert_equal('stmnore', getline(1)) | 1401 call assert_equal('stmnore', getline(1)) |
1402 bwipe! | 1402 bwipe! |
1403 endfunc | 1403 endfunc |
1404 | 1404 |
1405 func Test_abbreviate_multi_byte() | |
1406 new | |
1407 iabbrev foo bar | |
1408 call feedkeys("ifoo…\<Esc>", 'xt') | |
1409 call assert_equal("bar…", getline(1)) | |
1410 iunabbrev foo | |
1411 bwipe! | |
1412 endfunc | |
1413 | |
1405 " vim: shiftwidth=2 sts=2 expandtab | 1414 " vim: shiftwidth=2 sts=2 expandtab |