mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
fixup! Fix stomping of last_option_requires_param
Fix accidental misuse of maybe_t boolean operator instead of maybe_t payload.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user