diff options
author | Billy SU <g4691821@gmail.com> | 2019-03-06 05:48:52 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-05 22:48:52 +0100 |
commit | 299f32dc012929f55e5b6b9aaf7c7aded9e7e489 (patch) | |
tree | 80e84e049024d4a736a637767cbfe62920f1bd87 | |
parent | 5d2e4a5021fb83c3356c6482fef7baf2729dd3a5 (diff) | |
download | rneovim-299f32dc012929f55e5b6b9aaf7c7aded9e7e489.tar.gz rneovim-299f32dc012929f55e5b6b9aaf7c7aded9e7e489.tar.bz2 rneovim-299f32dc012929f55e5b6b9aaf7c7aded9e7e489.zip |
PVS/V560: window.c: fix always true condition #9682
-rw-r--r-- | src/nvim/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |