We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78f40ee commit d0a11baCopy full SHA for d0a11ba
1 file changed
highlighters/main/main-highlighter.zsh
@@ -1141,6 +1141,9 @@ _zsh_highlight_main_highlighter_check_assign()
1141
1142
_zsh_highlight_main_highlighter_highlight_path_separators()
1143
{
1144
+ if (( in_param || in_alias )); then
1145
+ return
1146
+ fi
1147
local pos style_pathsep
1148
style_pathsep=$1_pathseparator
1149
reply=()
@@ -1386,7 +1389,7 @@ _zsh_highlight_main_highlighter_highlight_argument()
1386
1389
done
1387
1390
1388
1391
if (( path_eligible )); then
- if (( in_redirection )) && [[ $last_arg == *['<>']['&'] && $arg[$1,-1] == (<0->|p|-) ]]; then
1392
+ if (( in_redirection && ! in_param )) && [[ $last_arg == *['<>']['&'] && $arg[$1,-1] == (<0->|p|-) ]]; then
1393
if [[ $arg[$1,-1] == (p|-) ]]; then
1394
base_style=redirection
1395
else
0 commit comments