mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
fix(terminal): handle OSC 8 split into multiple fragments
Also fix off-by-one size passed to xmemdupz().
(cherry picked from commit 40bf38fefc
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
07184aa973
commit
854b319060
@@ -407,6 +407,19 @@ describe(':terminal', function()
|
||||
^This is an {100:example} of a link |
|
||||
|*6
|
||||
]])
|
||||
-- Also works if OSC 8 is split into multiple fragments.
|
||||
api.nvim_chan_send(chan, '\nThis is another \027]8;;https')
|
||||
n.poke_eventloop()
|
||||
api.nvim_chan_send(chan, '://')
|
||||
n.poke_eventloop()
|
||||
api.nvim_chan_send(chan, 'example')
|
||||
n.poke_eventloop()
|
||||
api.nvim_chan_send(chan, '.com\027\\EXAMPLE\027]8;;\027\\ of a link')
|
||||
screen:expect([[
|
||||
^This is an {100:example} of a link |
|
||||
This is another {100:EXAMPLE} of a link |
|
||||
|*5
|
||||
]])
|
||||
end)
|
||||
|
||||
it('zoomout with large horizontal output #30374', function()
|
||||
|
Reference in New Issue
Block a user