mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
fix(api): don't use 'winborder' when reconfiguring float (#32984)
Problem: Reconfiguring a float window applies the global 'winborder'. Solution: - Ignore 'winborder' when reconfiguring a float window. - Still apply 'winborder' when converting a split to a float window.
This commit is contained in:
@@ -1280,7 +1280,7 @@ static bool parse_win_config(win_T *wp, Dict(win_config) *config, WinConfig *fco
|
||||
goto fail;
|
||||
}
|
||||
border_style = config->border;
|
||||
} else if (*p_winborder != NUL) {
|
||||
} else if (*p_winborder != NUL && (wp == NULL || !wp->w_floating)) {
|
||||
border_style = CSTR_AS_OBJ(p_winborder);
|
||||
}
|
||||
if (border_style.type != kObjectTypeNil) {
|
||||
|
Reference in New Issue
Block a user