mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
fix(terminal): handle OSC 8 split into multiple fragments
Also fix off-by-one size passed to xmemdupz().
This commit is contained in:
@@ -388,6 +388,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