diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-22 09:05:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 09:05:52 +0800 |
commit | 2137edbd4f15781a3a17091d38688a8ecbc02988 (patch) | |
tree | 16faa55543982ee9a87280e081711778e7cc43b2 /test/functional/ui | |
parent | d9e6a442f2ff9aebf4d45ad6fb5b05d492eb4e38 (diff) | |
download | rneovim-2137edbd4f15781a3a17091d38688a8ecbc02988.tar.gz rneovim-2137edbd4f15781a3a17091d38688a8ecbc02988.tar.bz2 rneovim-2137edbd4f15781a3a17091d38688a8ecbc02988.zip |
fix(extmarks): redraw properly with scoped inline virt_text (#27569)
Diffstat (limited to 'test/functional/ui')
-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 ac52b8a3c5..6e74d83a79 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -5577,6 +5577,29 @@ describe('decorations: window scoped', function() screen:expect(noextmarks) end) + it('redraws correctly with inline virt_text and wrapping', function() + set_scoped_extmark(0, 2, { + virt_text = {{ ('b'):rep(18), 'Comment' }}, + virt_text_pos = 'inline' + }) + + screen:expect(noextmarks) + + api.nvim_win_add_ns(0, ns) + + screen:expect { + grid = [[ + 12{1:bbbbbbbbbbbbbbbbbb}| + 34^5 | + {2:~ }|*7 + | + ]]} + + api.nvim_win_remove_ns(0, ns) + + screen:expect(noextmarks) + end) + pending('sign_text', function() -- TODO(altermo): The window signcolumn width is calculated wrongly (when `signcolumn=auto`) -- This happens in function `win_redraw_signcols` on line containing `buf_meta_total(buf, kMTMetaSignText) > 0` |