mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
PVS/V560: window.c: fix always true condition #9682
This commit is contained in:
parent
5d2e4a5021
commit
299f32dc01
@ -806,12 +806,12 @@ bool parse_float_config(Dictionary config, FloatConfig *out, bool reconf,
|
||||
api_set_error(err, kErrorTypeValidation,
|
||||
"Only one of 'relative' and 'external' should be used");
|
||||
return false;
|
||||
} else if (has_relative) {
|
||||
out->external = false;
|
||||
} else if (!reconf && !has_relative && !has_external) {
|
||||
api_set_error(err, kErrorTypeValidation,
|
||||
"One of 'relative' and 'external' must be used");
|
||||
return false;
|
||||
} else if (has_relative) {
|
||||
out->external = false;
|
||||
}
|
||||
|
||||
if (out->external && !ui_has(kUIMultigrid)) {
|
||||
|
Loading…
Reference in New Issue
Block a user