'main': Highlight hyphen options as files when so-named files are present.

E.g., «echo -foo» when «./-foo» exists.
This commit is contained in:
Daniel Shahaf 2018-01-20 00:22:24 +00:00
parent f16e858f0c
commit 8dddf5ae6b

View File

@ -801,7 +801,7 @@ _zsh_highlight_main_highlighter_highlight_argument()
else
base_style=single-hyphen-option
fi
path_eligible=0
#path_eligible=0
fi
for (( i = 1 ; i <= end_pos - start_pos ; i += 1 )); do