From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8421 invoked by alias); 23 Aug 2016 22:48:58 -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: 39093 Received: (qmail 4511 invoked from network); 23 Aug 2016 22:48:57 -0000 X-Qmail-Scanner-Diagnostics: from out2-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.26):SA:0(0.0/5.0):. Processed in 0.10098 secs); 23 Aug 2016 22:48:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=fuApIIa/fYM/oPVTBxzzAS5mpPo=; b=TaVweh 1XkXjo94argKAAeOwqG5ANF1u0BO09drfn/56ddCDmLISsbdvumT7crYvexQ674B g7WLUS7oBBPAY9kq5FdBu8f9CP8nE2AxzKOqeW9moqEBWokQ4TV5BOLOBIE0xvrN 2MAvtWUO8mwqKaTlBnKvHMBs/SsoA7I4DEu+c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=fuApIIa/fYM/oPVTBxzzAS5mpPo=; b=W3dCK ITv568714MD+qO9xLULCNEKf7lDqRBmkBz4xjAiGD7fZyiKRkX50TImzEr280z5O DBxXATVY38n/kPS9FwUQSDYojRzHzqXAC6lbH4da4ztVfx0DikISSahsc+ht18WK mx1ZVjAdUxwtkP1k8YLxGZiSJW+lQbIDEYZ3I8= X-Sasl-enc: v0n50RNif79DpiFhm6kgPSASie9e0m86vzZn9xzYq5Li 1471992534 Date: Tue, 23 Aug 2016 22:48:42 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: file completion(?) erases word typed Message-ID: <20160823224842.GA24864@fujitsu.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.23 (2014-03-12) I noticed something odd in a completion function that (eventually) calls _path_files: % git config sendemail.smtpserver <^C> # autoload % compdef __git_sendmail_smtpserver_values f % f /usr/bin/gtk-update-icon-cache-3. % f It erased the word I'd typed. ☹ It works fine when the period hasn't been typed. I've diffed _complete_debug traces and saw in $_lastcomp that compstate[unambiguous] differs between the two cases, but I'm not sure why, since the completion is unique («/usr/bin/gtk-update-icon-cache-3*» has one match).