From 48feb570f7b7d80cc7554629ba428c520ea8a3d5 Mon Sep 17 00:00:00 2001 From: "ohmyzsh[bot]" <54982679+ohmyzsh[bot]@users.noreply.github.com> Date: Sun, 11 Oct 2026 10:27:56 +0200 Subject: [PATCH] chore(zsh-syntax-highlighting): update to e6683f20 (#14175) Co-authored-by: ohmyzsh[bot] <54982679+ohmyzsh[bot]@users.noreply.github.com> --- .github/dependencies.yml | 2 +- .../highlighters/main/main-highlighter.zsh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/dependencies.yml b/.github/dependencies.yml index 0349c5da6..aface23ab 100644 --- a/.github/dependencies.yml +++ b/.github/dependencies.yml @@ -75,7 +75,7 @@ dependencies: plugins/zsh-syntax-highlighting: repo: zsh-users/zsh-syntax-highlighting branch: master - version: 2fc57d63067c18b1100ecdbf684fa5baf49459d1 + version: e6683f20e5c38d3e5447f45845d04ddda75d0f23 precopy: | set -e version=$(<.version) diff --git a/plugins/zsh-syntax-highlighting/highlighters/main/main-highlighter.zsh b/plugins/zsh-syntax-highlighting/highlighters/main/main-highlighter.zsh index 061e2a489..8531e5883 100644 --- a/plugins/zsh-syntax-highlighting/highlighters/main/main-highlighter.zsh +++ b/plugins/zsh-syntax-highlighting/highlighters/main/main-highlighter.zsh @@ -1240,9 +1240,14 @@ _zsh_highlight_main_highlighter_check_path() fi tmp_path=$tmp_path:a + local candidate_new_tmp_path while [[ $tmp_path != / ]]; do [[ -n ${(M)ZSH_HIGHLIGHT_DIRS_BLACKLIST:#$tmp_path} ]] && return 1 - tmp_path=$tmp_path:h + candidate_new_tmp_path=${tmp_path:h} + if [[ $candidate_new_tmp_path == $tmp_path ]]; then + break + fi + tmp_path=${candidate_new_tmp_path} done if (( in_command_position )); then