瀏覽代碼

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

pull/331/head
Matthew Martin 8 年之前
父節點
當前提交
91fa057a39
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      highlighters/main/main-highlighter.zsh

+ 1
- 1
highlighters/main/main-highlighter.zsh 查看文件

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

Loading…
取消
儲存