mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00: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:
parent
3ebfba7f5b
commit
ff00d3ca08
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue