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:
luukvbaal
2025-06-02 14:59:19 +02:00
committed by GitHub
parent 86835b3db3
commit 963308439a
2 changed files with 17 additions and 0 deletions

View File

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