From cd45aa331dc206b1b40c5be5e222d46148bf42ac Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 17 Apr 2000 08:04:42 +0000 Subject: make _tags use C-code for braces in tag-order values; and misc. stuff (10775) --- Completion/Core/_description | 4 ++-- Completion/Core/_path_files | 2 +- Completion/Core/_tags | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'Completion') diff --git a/Completion/Core/_description b/Completion/Core/_description index 7db47228b..6ee1026bd 100644 --- a/Completion/Core/_description +++ b/Completion/Core/_description @@ -18,8 +18,8 @@ name="$2" zstyle -s ":completion:${curcontext}:$1" format format || zstyle -s ":completion:${curcontext}:descriptions" format format -zstyle -s ":completion:${curcontext}:$1" hidden hidden -if [[ "$hidden" = (all|yes|true|1|on) ]]; then +if zstyle -s ":completion:${curcontext}:$1" hidden hidden && + [[ "$hidden" = (all|yes|true|1|on) ]]; then [[ "$hidden" = all ]] && format='' opts=(-n) fi diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index 377b9b7d0..1744c280b 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -221,7 +221,7 @@ else realpath='' if [[ "$pre[1]" = / ]]; then - # If it is a absolut path name, we remove the first slash and put it in + # If it is a absolute path name, we remove the first slash and put it in # `donepath' meaning that we treat it as the path that was already handled. # Also, we don't use the paths from `-W'. diff --git a/Completion/Core/_tags b/Completion/Core/_tags index 205fdb367..496f5b7e0 100644 --- a/Completion/Core/_tags +++ b/Completion/Core/_tags @@ -64,8 +64,7 @@ if (( $# )); then fi ;; \!*) comptry "${(@)argv:#(${(j:|:)~${=~tag[2,-1]}})}";; - ?*) eval "tag=( ${${tag:s/\\:/\\\\\\\\\\\\:}//(#b)([][()|*?^#~<>])/\\${match[1]}} )" - comptry -m "${${(@)tag// /\\ }}";; + ?*) comptry -m "$tag";; esac done -- cgit 1.4.1