From ff00d3ca08af93163e6ac48b376e8d857a5ce3ee Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 25 Sep 2022 13:33:30 -0500 Subject: [PATCH] fixup! Fix stomping of last_option_requires_param Fix accidental misuse of maybe_t boolean operator instead of maybe_t payload. --- src/complete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/complete.cpp b/src/complete.cpp index 858c5a6ed..f712ae276 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -879,7 +879,7 @@ bool completer_t::complete_param_for_command(const wcstring &cmd_orig, const wcs // Only override a true last_option_requires_param value with a false one if (last_option_requires_param.has_value()) { last_option_requires_param = - last_option_requires_param && o.result_mode.requires_param; + *last_option_requires_param && o.result_mode.requires_param; } else { last_option_requires_param = o.result_mode.requires_param; }