From 299f32dc012929f55e5b6b9aaf7c7aded9e7e489 Mon Sep 17 00:00:00 2001 From: Billy SU Date: Wed, 6 Mar 2019 05:48:52 +0800 Subject: PVS/V560: window.c: fix always true condition #9682 --- src/nvim/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/window.c b/src/nvim/window.c index 18fad76a95..bce4289ab4 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -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)) { -- cgit