# HG changeset patch # User Christian Brabandt # Date 1457195405 -3600 # Node ID 98955c2ffd9f1e8fbefa5b687b478dd9dc871f62 # Parent 84e801c196c2b5c628b0e7fc042110b742a44b3c commit https://github.com/vim/vim/commit/019b9c644e92742e37efc08fef47c2620a01b6b3 Author: Bram Moolenaar Date: Sat Mar 5 17:26:00 2016 +0100 Add new test file. diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim new file mode 100644 --- /dev/null +++ b/src/testdir/test_visual.vim @@ -0,0 +1,19 @@ +" Tests for Visual mode +if !has('multi_byte') + finish +endif +set encoding=utf-8 +scriptencoding utf-8 + +if !has('visual') + finish +endif + +func Test_block_shift_multibyte() + split + call setline(1, ['xヹxxx', 'ヹxxx']) + exe "normal 1G0l\jl>" + call assert_equal('x ヹxxx', getline(1)) + call assert_equal(' ヹxxx', getline(2)) + q! +endfunc