浏览代码

Merge 585696eeeb into e0165eaa73

pull/751/merge
Roman Perepelitsa 7 个月前
提交者 GitHub
父节点
当前提交
14233b746a
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 9 次插入5 次删除
  1. +9
    -5
      highlighters/main/main-highlighter.zsh

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

@ -1234,14 +1234,18 @@ _zsh_highlight_main_highlighter_check_path()
if [[ $expanded_path[1] == / ]]; then
tmp_path=$expanded_path
else
tmp_path=$PWD/$expanded_path
# Unlike $PWD, ${(%):-%/} predictably expands to '.' if the current
# working directory doesn't exist.
tmp_path=${(%):-%/}/$expanded_path
fi
tmp_path=$tmp_path:a
while [[ $tmp_path != / ]]; do
[[ -n ${(M)ZSH_HIGHLIGHT_DIRS_BLACKLIST:#$tmp_path} ]] && return 1
tmp_path=$tmp_path:h
done
if [[ $tmp_path == /* ]]; then
while [[ $tmp_path != / ]]; do
[[ -n ${(M)ZSH_HIGHLIGHT_DIRS_BLACKLIST:#$tmp_path} ]] && return 1
tmp_path=$tmp_path:h
done
fi
if (( in_command_position )); then
if [[ -x $expanded_path ]]; then

正在加载...
取消
保存