'main': Don't consider path_prefix in alias expansions.

This commit is contained in:
Daniel Shahaf 2020-03-16 21:45:50 +00:00 committed by Daniel Shahaf
parent 8184266338
commit f2726d0464
2 changed files with 2 additions and 1 deletions

View file

@ -1196,6 +1196,7 @@ _zsh_highlight_main_highlighter_check_path()
# If this word ends the buffer, check if it's the prefix of a valid path.
if (( has_end && (len == end_pos) )) &&
(( ! in_alias )) &&
[[ $WIDGET != zle-line-finish ]]; then
# TODO: When we've dropped support for pre-5.0.6 zsh, use the *(Y1) glob qualifier here.
local -a tmp

View file

@ -32,5 +32,5 @@ alias x=/
BUFFER=$'x'
expected_region_highlight=(
'1 1 unknown-token "issue #668"' # x (/)
'1 1 unknown-token' # x (/)
)