vim-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 vim/vim#6767)
cd94277f72
This commit is contained in:
Jan Edmund Lazo
2020-08-22 17:00:13 -04:00
parent 091fc72a92
commit 246c510b60
2 changed files with 34 additions and 1 deletions

View File

@@ -432,3 +432,14 @@ func Test_Visual_Block()
close!
endfunc
func Test_visual_put_in_block()
new
call setline(1, ['xxxx', 'y∞yy', 'zzzz'])
normal 1G2yl
exe "normal 1G2l\<C-V>jjlp"
call assert_equal(['xxxx', 'y∞xx', 'zzxx'], getline(1, 3))
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab