diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-05-03 06:11:22 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-05-03 06:21:50 +0800 |
| commit | 27149e0071c3fa38c81526f63a997bedfd6e2be8 (patch) | |
| tree | 8d819a934bd5c11c7947ff06bea23a609723d078 /src/nvim/testdir/test_functions.vim | |
| parent | ddf7bb24f98b468d2bc6c16c6f300570fc6530f5 (diff) | |
| download | rneovim-27149e0071c3fa38c81526f63a997bedfd6e2be8.tar.gz rneovim-27149e0071c3fa38c81526f63a997bedfd6e2be8.tar.bz2 rneovim-27149e0071c3fa38c81526f63a997bedfd6e2be8.zip | |
vim-patch:8.2.4858: K_SPECIAL may be escaped twice
Problem: K_SPECIAL may be escaped twice.
Solution: Avoid double escaping. (closes vim/vim#10340)
https://github.com/vim/vim/commit/db08887f24d20be11d184ce321bc0890613e42bd
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
| -rw-r--r-- | src/nvim/testdir/test_functions.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index f8be250f73..87606f17b8 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -1751,8 +1751,8 @@ func Test_nr2char() call assert_equal('a', nr2char(97, 1)) call assert_equal('a', nr2char(97, 0)) - call assert_equal("\x80\xfc\b\xf4\x80\xfeX\x80\xfeX\x80\xfeX", eval('"\<M-' .. nr2char(0x100000) .. '>"')) - call assert_equal("\x80\xfc\b\xfd\x80\xfeX\x80\xfeX\x80\xfeX\x80\xfeX\x80\xfeX", eval('"\<M-' .. nr2char(0x40000000) .. '>"')) + call assert_equal("\x80\xfc\b" .. nr2char(0x100000), eval('"\<M-' .. nr2char(0x100000) .. '>"')) + call assert_equal("\x80\xfc\b" .. nr2char(0x40000000), eval('"\<M-' .. nr2char(0x40000000) .. '>"')) endfunc " Test for getcurpos() and setpos() |