diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-01-17 18:49:32 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-01-17 18:49:32 +0000 |
commit | f879a295e14bb81a94fc52329b28ee523fcd36a7 (patch) | |
tree | 89f8ba2ba00570bd7dfa5bb415110498231b06cf /Completion/Base | |
parent | 3708080538bcb59e9659065be00ad5eb31d2312d (diff) | |
download | zsh-f879a295e14bb81a94fc52329b28ee523fcd36a7.tar.gz zsh-f879a295e14bb81a94fc52329b28ee523fcd36a7.tar.xz zsh-f879a295e14bb81a94fc52329b28ee523fcd36a7.zip |
use pager style instead of $EDITOR and fix bad substitution in exclusion lists
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/Widget/_complete_debug | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Base/Widget/_complete_debug b/Completion/Base/Widget/_complete_debug index 1f12e8b9f..4948426f9 100644 --- a/Completion/Base/Widget/_complete_debug +++ b/Completion/Base/Widget/_complete_debug @@ -4,7 +4,7 @@ eval "$_comp_setup" (( $+_debug_count )) || integer -g _debug_count local tmp=${TMPPREFIX}${$}${words[1]:t}$[++_debug_count] -local w="${(qq)words}" +local pager w="${(qq)words}" exec 3>&- # Too bad if somebody else is using it ... [[ -t 2 ]] && { exec 3>&2 2>| $tmp ; trap 'exec 2>&3 3>&-' EXIT INT } @@ -15,7 +15,8 @@ integer ret=$? unsetopt xtrace [[ -t 3 ]] && { - print -sR "${VISUAL:-${EDITOR:-${PAGER:-more}}} ${(q)tmp} ;: $w" + zstyle -s ':completion:complete-debug::::' pager pager + print -sR "${pager:-${PAGER:-${VISUAL:-${EDITOR:-more}}}} ${(q)tmp} ;: $w" _message -r "Trace output left in $tmp (up-history to view)" [[ $compstate[nmatches] -le 1 && $compstate[list] != *force* ]] && compstate[list]='list force messages' |