diff --git a/test/old/testdir/test_mapping.vim b/test/old/testdir/test_mapping.vim index 96fa0304dc..2c6730bfed 100644 --- a/test/old/testdir/test_mapping.vim +++ b/test/old/testdir/test_mapping.vim @@ -1118,7 +1118,11 @@ func Test_map_cmdkey() call setline(1, ['some short lines', 'of test text']) call feedkeys(":bar\x\\"\r", 'xt') call assert_equal('"barx', @:) - unmap! + + " test for chars with 0x80 or 0x9b bytes + map let x = '洛固四最倒倀' + call feedkeys("\", 'xt') + call assert_equal('洛固四最倒倀', x) " test for calling a function let lines =<< trim END @@ -1127,12 +1131,14 @@ func Test_map_cmdkey() let g:x = 32 endfunc END - call writefile(lines, 'Xscript') + call writefile(lines, 'Xscript', 'D') source Xscript call feedkeys("\", 'xt') call assert_equal(32, g:x) - call delete('Xscript') + unlet g:x + unmap + unmap! unmap unmap! %bw!