Procházet zdrojové kódy

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

pull/331/head
Matthew Martin před 8 roky
rodič
revize
91fa057a39
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      highlighters/main/main-highlighter.zsh

+ 1
- 1
highlighters/main/main-highlighter.zsh Zobrazit soubor

@ -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 ]] &&

Načítá se…
Zrušit
Uložit