From 30dd372bcb854dd4d1374d5fd3f7c4604ade0861 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Wed, 22 Jul 2015 13:03:02 -0700 Subject: users/20324: add (D) flag for tilde-fied completion listing Also move some more recent code so an old comment is connected to the correct bit of older code --- Completion/Zsh/Type/_directory_stack | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion') diff --git a/Completion/Zsh/Type/_directory_stack b/Completion/Zsh/Type/_directory_stack index 8a4cf675a..e84115a64 100644 --- a/Completion/Zsh/Type/_directory_stack +++ b/Completion/Zsh/Type/_directory_stack @@ -12,14 +12,14 @@ local expl list lines revlines disp sep ### we decided against this, for now... #! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed || -zstyle -s ":completion:${curcontext}:directory-stack" list-separator sep || sep=-- - [[ $PREFIX = [-+]* ]] || return 1 +zstyle -s ":completion:${curcontext}:directory-stack" list-separator sep || sep=-- + if zstyle -T ":completion:${curcontext}:directory-stack" verbose; then # get the list of directories with their canonical number # and turn the lines into an array, removing the current directory - lines=("${dirstack[@]}") + lines=("${(D)dirstack[@]}") if [[ ( $PREFIX[1] = - && ! -o pushdminus ) || ( $PREFIX[1] = + && -o pushdminus ) ]]; then -- cgit 1.4.1