mirror of
https://github.com/neovim/neovim.git
synced 2026-04-29 10:44:08 +00:00
fix(window): making float with title/footer non-float leaks memory (#30551)
This commit is contained in:
@@ -1815,10 +1815,10 @@ describe('API/win', function()
|
||||
'title/footer must be string or array',
|
||||
pcall_err(api.nvim_open_win, 0, false, {
|
||||
relative = 'editor',
|
||||
row = 5,
|
||||
col = 5,
|
||||
height = 5,
|
||||
width = 5,
|
||||
row = 10,
|
||||
col = 10,
|
||||
height = 10,
|
||||
width = 10,
|
||||
border = 'single',
|
||||
title = { { 'TITLE' } },
|
||||
footer = 0,
|
||||
@@ -1831,10 +1831,10 @@ describe('API/win', function()
|
||||
'title/footer must be string or array',
|
||||
pcall_err(api.nvim_open_win, 0, false, {
|
||||
relative = 'editor',
|
||||
row = 5,
|
||||
col = 5,
|
||||
height = 5,
|
||||
width = 5,
|
||||
row = 10,
|
||||
col = 10,
|
||||
height = 10,
|
||||
width = 10,
|
||||
border = 'single',
|
||||
title = 0,
|
||||
footer = { { 'FOOTER' } },
|
||||
@@ -2840,10 +2840,10 @@ describe('API/win', function()
|
||||
before_each(function()
|
||||
win = api.nvim_open_win(0, false, {
|
||||
relative = 'editor',
|
||||
row = 5,
|
||||
col = 5,
|
||||
height = 5,
|
||||
width = 5,
|
||||
row = 10,
|
||||
col = 10,
|
||||
height = 10,
|
||||
width = 10,
|
||||
border = 'single',
|
||||
title = { { 'OLD_TITLE' } },
|
||||
footer = { { 'OLD_FOOTER' } },
|
||||
|
||||
Reference in New Issue
Block a user