zsh-workers
 help / color / mirror / code / Atom feed
* file completion(?) erases word typed
@ 2016-08-23 22:48 Daniel Shahaf
  2016-08-24  5:52 ` Bart Schaefer
  2016-11-17 21:51 ` file completion(?) erases word typed Bart Schaefer
  0 siblings, 2 replies; 9+ messages in thread
From: Daniel Shahaf @ 2016-08-23 22:48 UTC (permalink / raw)
  To: zsh-workers

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


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

end of thread, other threads:[~2016-11-17 23:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 22:48 file completion(?) erases word typed Daniel Shahaf
2016-08-24  5:52 ` Bart Schaefer
2016-08-24 19:13   ` Daniel Shahaf
2016-08-25  0:04     ` Bart Schaefer
2016-08-25  1:19       ` Daniel Shahaf
2016-08-30  7:03     ` Bart Schaefer
2016-09-14  3:49       ` legend for match_str (was: Re: file completion(?) erases word typed) Daniel Shahaf
2016-09-14  5:25         ` Bart Schaefer
2016-11-17 21:51 ` file completion(?) erases word typed Bart Schaefer

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