Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slash after directory number in cd completion?
- X-seq: zsh-workers 13997
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Slash after directory number in cd completion?
- Date: Tue, 17 Apr 2001 10:52:57 +0200 (MET DST)
- In-reply-to: <20010412113428.86398.qmail@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
[ Hello, everyone. I'm back. ]
Oliver Kiddle wrote:
> ...
>
> I actually think the correct patch would be to remove the whole if,
> then else because it is done in _tilde and isn't otherwise needed. I've
> left it for the time being though.
I agree.
Bye
Sven
Index: Completion/Zsh/Type/_directory_stack
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Type/_directory_stack,v
retrieving revision 1.3
diff -u -r1.3 _directory_stack
--- Completion/Zsh/Type/_directory_stack 2001/04/12 11:42:02 1.3
+++ Completion/Zsh/Type/_directory_stack 2001/04/17 08:51:53
@@ -7,16 +7,8 @@
setopt localoptions nonomatch
-local expl list lines revlines disp suf
+local expl list lines revlines disp
-if [[ "$SUFFIX" = */* ]]; then
- ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
- SUFFIX="${SUFFIX%%/*}"
- suf=(-S '')
-else
- suf=()
-fi
-
### we decided against this, for now...
#! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed ||
@@ -48,4 +40,4 @@
fi
_wanted -V directory-stack expl 'directory stack' \
- compadd "$@" "$suf[@]" "$disp[@]" -Q -a list
+ compadd "$@" "$disp[@]" -Q -a list
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author