mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 07:11:20 +00:00
fix(clipboard): correct blockwise register width computation (#35038)
This commit is contained in:
@@ -1573,6 +1573,17 @@ describe('API', function()
|
||||
eq("Invalid 'type': 'bx'", pcall_err(api.nvim_put, { 'xxx', 'yyy' }, 'bx', false, true))
|
||||
eq("Invalid 'type': 'b3x'", pcall_err(api.nvim_put, { 'xxx', 'yyy' }, 'b3x', false, true))
|
||||
end)
|
||||
|
||||
it('computes block width correctly when not specified #35034', function()
|
||||
api.nvim_put({ 'line 1', 'line 2', 'line 3' }, 'l', false, false)
|
||||
-- block width should be 4
|
||||
api.nvim_put({ 'あい', 'xxx', 'xx' }, 'b', false, false)
|
||||
expect([[
|
||||
あいline 1
|
||||
xxx line 2
|
||||
xx line 3
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('nvim_strwidth', function()
|
||||
|
||||
Reference in New Issue
Block a user