From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: tag aliases
Date: Wed, 22 Mar 2000 15:36:57 +0100 (MET) [thread overview]
Message-ID: <200003221436.PAA17791@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Sven Wischnowsky's message of Wed, 22 Mar 2000 13:56:55 +0100 (MET)
Just a small simplification in _loop.
Bye
Sven
diff -ru ../z.old/Completion/Core/_loop Completion/Core/_loop
--- ../z.old/Completion/Core/_loop Wed Mar 22 14:23:27 2000
+++ Completion/Core/_loop Wed Mar 22 15:33:22 2000
@@ -11,11 +11,11 @@
shift
fi
-tmp=${argv[4,-1][(i)-]}
-if [[ tmp -lt ${#}-3 ]]; then
- pre=( "${(@)argv[4,tmp+2]}" )
- suf=( "${(@)argv[tmp+3,-1]}" )
-elif [[ tmp -eq ${#}-3 ]]; then
+tmp=${argv[(ib:4:)-]}
+if [[ tmp -lt $# ]]; then
+ pre=( "${(@)argv[4,tmp-1]}" )
+ suf=( "${(@)argv[tmp,-1]}" )
+elif [[ tmp -eq $# ]]; then
pre=( "${(@)argv[4,-2]}" )
suf=()
else
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-03-22 14:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-22 14:36 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-03-27 11:58 Sven Wischnowsky
2000-03-27 16:54 ` Bart Schaefer
2000-03-24 12:28 Sven Wischnowsky
2000-03-23 12:55 Sven Wischnowsky
2000-03-23 9:00 Sven Wischnowsky
2000-03-23 8:57 Sven Wischnowsky
2000-03-23 8:13 Sven Wischnowsky
2000-03-22 12:56 Sven Wischnowsky
2000-03-23 8:49 ` Andrej Borsenkow
2000-03-23 8:55 ` Andrej Borsenkow
2000-03-24 17:48 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200003221436.PAA17791@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).