File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1141,6 +1141,9 @@ _zsh_highlight_main_highlighter_check_assign()
1141
1141
1142
1142
_zsh_highlight_main_highlighter_highlight_path_separators ()
1143
1143
{
1144
+ if (( in_param || in_alias )) ; then
1145
+ return
1146
+ fi
1144
1147
local pos style_pathsep
1145
1148
style_pathsep=$1 _pathseparator
1146
1149
reply=()
@@ -1386,7 +1389,7 @@ _zsh_highlight_main_highlighter_highlight_argument()
1386
1389
done
1387
1390
1388
1391
if (( path_eligible )) ; then
1389
- 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
1390
1393
if [[ $arg [$1 ,-1] == (p| -) ]]; then
1391
1394
base_style=redirection
1392
1395
else
You can’t perform that action at this time.
0 commit comments