diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-07-23 10:46:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-23 10:46:15 +0800 |
| commit | 95dfb063daa709d303d0e37e86fbc8067950a830 (patch) | |
| tree | f501079eddc0f987b9ab958153788fb8f31be2bf /test/functional/api/vim_spec.lua | |
| parent | 4fe51dfdae84f139bb92f8517aff914c4adb052c (diff) | |
| download | rneovim-95dfb063daa709d303d0e37e86fbc8067950a830.tar.gz rneovim-95dfb063daa709d303d0e37e86fbc8067950a830.tar.bz2 rneovim-95dfb063daa709d303d0e37e86fbc8067950a830.zip | |
fix(clipboard): correct blockwise register width computation (#35038)
Diffstat (limited to 'test/functional/api/vim_spec.lua')
| -rw-r--r-- | test/functional/api/vim_spec.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index beb3d0f34d..abcefd28bf 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -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() |