Bram Moolenaar | ac105ed | 2016-07-21 20:33:32 +0200 | [diff] [blame] | 1 | " Tests for Visual mode. Uses double-wide character. |
Bram Moolenaar | 019b9c6 | 2016-03-05 17:26:00 +0100 | [diff] [blame] | 2 | if !has('multi_byte') |
| 3 | finish |
| 4 | endif |
Bram Moolenaar | 019b9c6 | 2016-03-05 17:26:00 +0100 | [diff] [blame] | 5 | |
| 6 | if !has('visual') |
| 7 | finish |
| 8 | endif |
| 9 | |
| 10 | func Test_block_shift_multibyte() |
| 11 | split |
| 12 | call setline(1, ['xヹxxx', 'ヹxxx']) |
| 13 | exe "normal 1G0l\<C-V>jl>" |
| 14 | call assert_equal('x ヹxxx', getline(1)) |
| 15 | call assert_equal(' ヹxxx', getline(2)) |
| 16 | q! |
| 17 | endfunc |