diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-25 19:31:15 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-25 19:31:15 +0000 |
commit | 4d07253a485819b3a9fd923d263e722ea2109c12 (patch) | |
tree | 9174bc37493c986aa5cb7dfca539ce518fdb5379 /src/testdir/test_put.vim | |
parent | 309ce251897512d42da2b0df0ff100dc303e688a (diff) | |
download | vim-git-4d07253a485819b3a9fd923d263e722ea2109c12.tar.gz |
patch 8.2.3677: after a put the '] mark is on the last bytev8.2.3677
Problem: After a put the '] mark is on the last byte of a multi-byte
character.
Solution: Move it to the first byte. (closes #9047)
Diffstat (limited to 'src/testdir/test_put.vim')
-rw-r--r-- | src/testdir/test_put.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_put.vim b/src/testdir/test_put.vim index de66a6d7f..c390bbb61 100644 --- a/src/testdir/test_put.vim +++ b/src/testdir/test_put.vim @@ -197,5 +197,18 @@ func Test_put_above_first_line() bwipe! endfunc +func Test_multibyte_op_end_mark() + new + call setline(1, 'ัะตัั') + normal viwdp + call assert_equal([0, 1, 7, 0], getpos("'>")) + call assert_equal([0, 1, 7, 0], getpos("']")) + + normal Vyp + call assert_equal([0, 1, 2147483647, 0], getpos("'>")) + call assert_equal([0, 2, 7, 0], getpos("']")) + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |