Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
odd completion misbehavior?
- X-seq: zsh-workers 29835
- From: Danek Duvall <duvall@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: odd completion misbehavior?
- Date: Thu, 20 Oct 2011 13:48:00 -0700
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Danek Duvall <duvall@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
With the following completion function:
_danek() {
_arguments \
"--zoo-name" \
"--zipple-zoo-name"
}
and running under zsh -f with only
autoload -Uz compinit
compinit -i
compdef _danek danek
if I type "danek --z<TAB>", I end up with "danek --z-name", with the cursor
on the dash between "z" and "name". If I hit tab again, I end up with
"danek --zoo-name ", with the cursor after the final space. If I setopt
menucomplete, I get reasonable behavior.
What have I done wrong with the completion function?
Thanks,
Danek
Messages sorted by:
Reverse Date,
Date,
Thread,
Author