From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5775 invoked by alias); 20 Oct 2011 20:48:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29835 Received: (qmail 5816 invoked from network); 20 Oct 2011 20:48:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at lorien.comfychair.org designates 173.8.144.98 as permitted sender) Date: Thu, 20 Oct 2011 13:48:00 -0700 From: Danek Duvall To: zsh-workers@zsh.org Subject: odd completion misbehavior? Message-ID: <20111020204800.GA28174@lorien.comfychair.org> Mail-Followup-To: Danek Duvall , zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2010-04-22) 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", 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