From 429534496a3e4318220463a05ab57abed33bca7d Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Tue, 20 Sep 2022 22:37:17 -0500 Subject: [PATCH] fixup! Fix stomping of last_option_requires_param --- src/complete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/complete.cpp b/src/complete.cpp index f6d40b78e..b5b897582 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -858,7 +858,7 @@ bool completer_t::complete_param_for_command(const wcstring &cmd_orig, const wcs size_t short_opt_pos = short_option_pos(str, options); // We want last_option_requires_param to default to false but distinguish between when // a previous completion has set it to false and when it has its default value. - maybe_t last_option_requires_param = none(); + maybe_t last_option_requires_param{}; bool use_common = true; if (use_switches) { if (str[0] == L'-') {