mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 05:17:08 +08:00
fixup! Fix stomping of last_option_requires_param
This commit is contained in:
parent
ed67f2d221
commit
429534496a
@ -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<bool> last_option_requires_param = none();
|
||||
maybe_t<bool> last_option_requires_param{};
|
||||
bool use_common = true;
|
||||
if (use_switches) {
|
||||
if (str[0] == L'-') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user