mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 12:58:29 +08:00
highlighter: remove redundant check if we can do io
It's done a few lines above.
This commit is contained in:
parent
acb47f70d2
commit
9c6f46a808
@ -1012,7 +1012,7 @@ void highlighter_t::visit(const ast::argument_t &arg, bool cmd_is_cd, bool optio
|
||||
if (expand_one(param, expand_flag::skip_cmdsubst, ctx)) {
|
||||
bool is_help =
|
||||
string_prefixes_string(param, L"--help") || string_prefixes_string(param, L"-h");
|
||||
if (!is_help && this->io_ok &&
|
||||
if (!is_help &&
|
||||
!is_potential_cd_path(param, working_directory, ctx, PATH_EXPAND_TILDE)) {
|
||||
this->color_node(arg, highlight_role_t::error);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user