We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8184266 commit f2726d0Copy full SHA for f2726d0
highlighters/main/main-highlighter.zsh
@@ -1196,6 +1196,7 @@ _zsh_highlight_main_highlighter_check_path()
1196
1197
# If this word ends the buffer, check if it's the prefix of a valid path.
1198
if (( has_end && (len == end_pos) )) &&
1199
+ (( ! in_alias )) &&
1200
[[ $WIDGET != zle-line-finish ]]; then
1201
# TODO: When we've dropped support for pre-5.0.6 zsh, use the *(Y1) glob qualifier here.
1202
local -a tmp
highlighters/main/test-data/alias-to-dir.zsh
@@ -32,5 +32,5 @@ alias x=/
32
BUFFER=$'x'
33
34
expected_region_highlight=(
35
- '1 1 unknown-token "issue #668"' # x (/)
+ '1 1 unknown-token' # x (/)
36
)
0 commit comments