mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
fix(window): making float with title/footer non-float leaks memory (#30551)
This commit is contained in:
@@ -203,13 +203,7 @@ void win_config_float(win_T *wp, WinConfig fconfig)
|
||||
wp->w_config.border_hl_ids,
|
||||
sizeof fconfig.border_hl_ids) != 0);
|
||||
|
||||
if (fconfig.title_chunks.items != wp->w_config.title_chunks.items) {
|
||||
clear_virttext(&wp->w_config.title_chunks);
|
||||
}
|
||||
if (fconfig.footer_chunks.items != wp->w_config.footer_chunks.items) {
|
||||
clear_virttext(&wp->w_config.footer_chunks);
|
||||
}
|
||||
wp->w_config = fconfig;
|
||||
merge_win_config(&wp->w_config, fconfig);
|
||||
|
||||
bool has_border = wp->w_floating && wp->w_config.border;
|
||||
for (int i = 0; i < 4; i++) {
|
||||
|
Reference in New Issue
Block a user