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:
glepnir
2025-03-19 20:16:20 +08:00
committed by GitHub
parent 74fcc9452c
commit 0e59f6f4c7
3 changed files with 39 additions and 2 deletions

View File

@@ -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) {