Mercurial > vim
comparison src/testdir/test_visual.vim @ 21923:2626306efe44 v8.2.1511
patch 8.2.1511: putting a string in Visual block mode ignores multi-byte
Commit: https://github.com/vim/vim/commit/cd94277f72e29b740635da84bcd872c96e11bf67
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 22 21:08:44 2020 +0200
patch 8.2.1511: putting a string in Visual block mode ignores multi-byte
Problem: Putting a string in Visual block mode ignores multi-byte
characters.
Solution: Adjust the column for Visual block mode. (closes #6767)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 22 Aug 2020 21:15:03 +0200 |
parents | 505d97ea54da |
children | b3751f4d3b26 |
comparison
equal
deleted
inserted
replaced
21922:bad21603b8c4 | 21923:2626306efe44 |
---|---|
920 call cursor(5, 1) | 920 call cursor(5, 1) |
921 call assert_beeps('normal ViBiB') | 921 call assert_beeps('normal ViBiB') |
922 close! | 922 close! |
923 endfunc | 923 endfunc |
924 | 924 |
925 func Test_visual_put_in_block() | |
926 new | |
927 call setline(1, ['xxxx', 'y∞yy', 'zzzz']) | |
928 normal 1G2yl | |
929 exe "normal 1G2l\<C-V>jjlp" | |
930 call assert_equal(['xxxx', 'y∞xx', 'zzxx'], getline(1, 3)) | |
931 bwipe! | |
932 endfunc | |
933 | |
925 " vim: shiftwidth=2 sts=2 expandtab | 934 " vim: shiftwidth=2 sts=2 expandtab |