mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-14 03:42:44 +08:00
Reject commandline --search-field --tokens*
As of today, it makes no sense to tokenize the search field. We already reject arguments like --current-process. Extend that to the --tokens family.
This commit is contained in:
parent
6f480d1d85
commit
674b7b6f92
|
@ -397,8 +397,8 @@ pub fn commandline(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr])
|
|||
return STATUS_INVALID_ARGS;
|
||||
}
|
||||
|
||||
if search_field_mode && buffer_part.is_some() {
|
||||
streams.err.append(wgettext_fmt!(BUILTIN_ERR_COMBO, cmd,));
|
||||
if search_field_mode && (buffer_part.is_some() || token_mode.is_some()) {
|
||||
streams.err.append(wgettext_fmt!(BUILTIN_ERR_COMBO, cmd));
|
||||
builtin_print_error_trailer(parser, streams.err, cmd);
|
||||
return STATUS_INVALID_ARGS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user