diff options
author | luukvbaal <luukvbaal@gmail.com> | 2023-12-26 00:16:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-26 07:16:03 +0800 |
commit | bbd5c6363c25e8fbbfb962f8f6c5ea1800d431ca (patch) | |
tree | 85ba9d46cbe0d01a432f4bfb5f9ce475c0ee383f /test/functional/ui/bufhl_spec.lua | |
parent | 0a598c13b1863ba1aff378027c4376e3ab7048ee (diff) | |
download | rneovim-bbd5c6363c25e8fbbfb962f8f6c5ea1800d431ca.tar.gz rneovim-bbd5c6363c25e8fbbfb962f8f6c5ea1800d431ca.tar.bz2 rneovim-bbd5c6363c25e8fbbfb962f8f6c5ea1800d431ca.zip |
feat(extmarks): add virt_text_repeat_linebreak flag (#26625)
Problem: Unable to predict which byte-offset to place virtual text to
make it repeat visually in the wrapped part of a line.
Solution: Add a flag to nvim_buf_set_extmark() that causes virtual
text to repeat in wrapped lines.
Diffstat (limited to 'test/functional/ui/bufhl_spec.lua')
-rw-r--r-- | test/functional/ui/bufhl_spec.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua index f7b8144ff9..e47ab273bd 100644 --- a/test/functional/ui/bufhl_spec.lua +++ b/test/functional/ui/bufhl_spec.lua @@ -644,6 +644,7 @@ describe('Buffer highlighting', function() virt_text = s1, -- other details right_gravity = true, + virt_text_repeat_linebreak = false, virt_text_pos = 'eol', virt_text_hide = false, }}}, get_extmarks(id1, {0,0}, {0, -1}, {details=true})) @@ -656,6 +657,7 @@ describe('Buffer highlighting', function() virt_text = s2, -- other details right_gravity = true, + virt_text_repeat_linebreak = false, virt_text_pos = 'eol', virt_text_hide = false, }}}, get_extmarks(id1, {lastline,0}, {lastline, -1}, {details=true})) |