forked from aniani/vim
Problem: When a multi-byte character ends in a zero byte, putting blockwise
text puts it before the character instead of after it.
Solution: Use int instead of char for the character under the cursor.
(Luchr, closes #1403) Add a test.
13 lines
242 B
VimL
13 lines
242 B
VimL
|
|
func Test_put_block()
|
|
if !has('multi_byte')
|
|
return
|
|
endif
|
|
new
|
|
call feedkeys("i\<C-V>u2500\<CR>x\<ESC>", 'x')
|
|
call feedkeys("\<C-V>y", 'x')
|
|
call feedkeys("gg0p", 'x')
|
|
call assert_equal("\u2500x", getline(1))
|
|
bwipe!
|
|
endfunc
|