Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
file completion(?) erases word typed
- X-seq: zsh-workers 39093
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: file completion(?) erases word typed
- Date: Tue, 23 Aug 2016 22:48:42 +0000
- 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=
- 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
I noticed something odd in a completion function that (eventually) calls _path_files:
% git config sendemail.smtpserver <TAB><^C> # autoload
% compdef __git_sendmail_smtpserver_values f
% f /usr/bin/gtk-update-icon-cache-3.<TAB>
% f <CURSOR>
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).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author