summaryrefslogtreecommitdiff
path: root/src/testdir/test_put.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_put.vim')
-rw-r--r--src/testdir/test_put.vim13
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