mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 09:19:43 +10:00
fix(statusline): don't leak memory with truncated click labels
This commit is contained in:
@@ -174,6 +174,14 @@ describe('statusline clicks', function()
|
||||
meths.input_mouse('right', 'press', '', 0, 6, 39)
|
||||
eq('0 1 r', eval("g:testvar"))
|
||||
end)
|
||||
|
||||
it('no memory leak with truncated click labels', function()
|
||||
command([[
|
||||
let &stl = '%@MyClickFunc@foo%X' .. repeat('a', 40) .. '%<t%@Test@bar%X%@Test@baz'
|
||||
]])
|
||||
meths.input_mouse('left', 'press', '', 0, 6, 2)
|
||||
eq('0 1 l', eval("g:testvar"))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('global statusline', function()
|
||||
|
||||
Reference in New Issue
Block a user