diff options
author | Christian Clason <c.clason@uni-graz.at> | 2021-11-26 12:16:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 12:16:04 +0100 |
commit | a31e7523f49c351045aed88f289d231cc7e679d1 (patch) | |
tree | cc2f846d4d77b84c1c97da84b5211d69a6ca40f9 /src/nvim/testdir | |
parent | eb876a0a6f5efb4706625723a8dd45b0c6c133a4 (diff) | |
download | rneovim-a31e7523f49c351045aed88f289d231cc7e679d1.tar.gz rneovim-a31e7523f49c351045aed88f289d231cc7e679d1.tar.bz2 rneovim-a31e7523f49c351045aed88f289d231cc7e679d1.zip |
vim-patch:8.2.3677: after a put the '] mark is on the last byte (#16442)
Problem: After a put the '] mark is on the last byte of a multi-byte
character.
Solution: Move it to the first byte. (closes vim/vim#9047)
https://github.com/vim/vim/commit/4d07253a485819b3a9fd923d263e722ea2109c12
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_put.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim index 15745d5619..8d8cc77025 100644 --- a/src/nvim/testdir/test_put.vim +++ b/src/nvim/testdir/test_put.vim @@ -111,3 +111,16 @@ func Test_put_p_indent_visual() call assert_equal('select that text', getline(2)) 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 |