zsh-workers
 help / color / mirror / code / Atom feed
* odd completion misbehavior?
@ 2011-10-20 20:48 Danek Duvall
  2011-10-20 21:44 ` Benjamin R. Haskell
  0 siblings, 1 reply; 2+ messages in thread
From: Danek Duvall @ 2011-10-20 20:48 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-20 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-20 20:48 odd completion misbehavior? Danek Duvall
2011-10-20 21:44 ` Benjamin R. Haskell

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).