mirror of
https://github.com/neovim/neovim.git
synced 2026-01-07 03:48:02 +10:00
fix(clipboard): correct blockwise register width computation (#35038)
This commit is contained in:
@@ -537,7 +537,7 @@ describe('clipboard (with fake clipboard.vim)', function()
|
||||
eq('textstar', api.nvim_get_current_line())
|
||||
end)
|
||||
|
||||
it('Block paste works correctly', function()
|
||||
it('block paste works correctly', function()
|
||||
insert([[
|
||||
aabbcc
|
||||
ddeeff
|
||||
@@ -550,6 +550,20 @@ describe('clipboard (with fake clipboard.vim)', function()
|
||||
ddeeddeeff
|
||||
]])
|
||||
end)
|
||||
|
||||
it('block paste computes block width correctly #35034', function()
|
||||
insert('あいうえお')
|
||||
feed('0<C-V>ly')
|
||||
feed('P')
|
||||
expect('あいあいうえお')
|
||||
feed('A\nxxx\nxx<Esc>')
|
||||
feed('0<C-V>kkly')
|
||||
feed('P')
|
||||
expect([[
|
||||
あいあいあいうえお
|
||||
xxx xxx
|
||||
xx xx]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('clipboard=unnamedplus', function()
|
||||
|
||||
Reference in New Issue
Block a user