diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-01-22 15:34:42 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-01-22 20:39:24 +0000 |
commit | 13d50c3b13fb6f2bba948e50fefee451e0a90487 (patch) | |
tree | 7669aa40c3eb0187ef3b6000a7fc4d6281df8291 /test/functional/ui/decorations_spec.lua | |
parent | 51f783f2faa2008bfb4136a15029a78efbc77715 (diff) | |
download | rneovim-13d50c3b13fb6f2bba948e50fefee451e0a90487.tar.gz rneovim-13d50c3b13fb6f2bba948e50fefee451e0a90487.tar.bz2 rneovim-13d50c3b13fb6f2bba948e50fefee451e0a90487.zip |
fix(column): clear "b_signcols" when marktree is cleared
Diffstat (limited to 'test/functional/ui/decorations_spec.lua')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index 0844ddf249..f133b37e31 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -4998,6 +4998,29 @@ l5 | ]]} end) + + it('correct width after wiping a buffer', function() + screen:try_resize(20, 4) + insert(example_test3) + feed('gg') + local buf = api.nvim_get_current_buf() + api.nvim_buf_set_extmark(buf, ns, 0, 0, { sign_text = 'h' }) + screen:expect{grid=[[ + h ^l1 | + {1: }l2 | + {1: }l3 | + | + ]]} + api.nvim_win_set_buf(0, api.nvim_create_buf(false, true)) + api.nvim_buf_delete(buf, {unload=true, force=true}) + api.nvim_buf_set_lines(buf, 0, -1, false, {''}) + api.nvim_win_set_buf(0, buf) + screen:expect{grid=[[ + ^ | + {2:~ }|*2 + | + ]]} + end) end) describe('decorations: virt_text', function() |