Bläddra i källkod

minor: 'main': Only search for prefixes if :h is a directory

pull/331/head
Matthew Martin 8 år sedan
förälder
incheckning
91fa057a39
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      highlighters/main/main-highlighter.zsh

+ 1
- 1
highlighters/main/main-highlighter.zsh Visa fil

@ -580,7 +580,7 @@ _zsh_highlight_main_highlighter_check_path()
done
# If dirname($arg) doesn't exist, neither does $arg.
[[ ! -e ${expanded_path:h} ]] && return 1
[[ ! -d ${expanded_path:h} ]] && return 1
# If this word ends the buffer, check if it's the prefix of a valid path.
if [[ ${BUFFER[1]} != "-" && ${#BUFFER} == $end_pos ]] &&

Laddar…
Avbryt
Spara