mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user