Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 4/5] bashcompinit: simplify result matching code
- X-seq: zsh-workers 30133
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 4/5] bashcompinit: simplify result matching code
- Date: Sat, 28 Jan 2012 18:55:50 +0200
- Cc: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=EdH3hxGtTIuBSIxZypvZmX3gXN+qdsOwAGxCHPynTkQ=; b=iv1ordv2vwxTllb/m832xXWpuFOajsnLLkQvqb/shBcdkMXNwmSiynxwh4ObcBfA8u T/fbHNhWIAxzOUxBYr0gj8jvAZcTt8brmJiD8pXsJ3FjK+9jSDxqmA2bvnFTpsA4wLAM Q+YX0rwz+sFOaBtpORGZykI8x8EMWmNDuaxr4=
- In-reply-to: <1327769751-6806-1-git-send-email-felipe.contreras@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1327769751-6806-1-git-send-email-felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>
---
Completion/bashcompinit | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Completion/bashcompinit b/Completion/bashcompinit
index 4b2084a..9c561c5 100644
--- a/Completion/bashcompinit
+++ b/Completion/bashcompinit
@@ -151,8 +151,7 @@ compgen() {
# support for the last, `word' option to compgen. Zsh's matching does a
# better job but if you need to, comment this in and use compadd -U
- #shift $(( OPTIND - 1 ))
- #(( $# )) && results=( "${(M)results[@]:#$1*}" )
+ # (( $# >= OPTIND)) && results=( "${(M)results[@]:#${@[-1]}*}" )
print -l -r -- "$prefix${^results[@]}$suffix"
}
--
1.7.8.3
Messages sorted by:
Reverse Date,
Date,
Thread,
Author