mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 05:46:12 +00:00
fix(api): reconfiguring float "relative" does not clear "win" (#34271)
Problem: Unable to change the "relative" of a flag after its target "win" no longer exists. Solution: Unset target window if it is not present in config and reconfigured "relative" no longer expects a target window.
This commit is contained in:
@@ -1206,6 +1206,8 @@ static bool parse_win_config(win_T *wp, Dict(win_config) *config, WinConfig *fco
|
||||
"non-float with 'win' requires at least 'split' or 'vertical'");
|
||||
goto fail;
|
||||
}
|
||||
} else {
|
||||
fconfig->window = 0;
|
||||
}
|
||||
|
||||
if (HAS_KEY_X(config, external)) {
|
||||
|
Reference in New Issue
Block a user