Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh: insert-last-word problem after completion



On 2010-04-26 13:11:39 +0100, Peter Stephenson wrote:
> On Mon, 26 Apr 2010 12:53:31 +0200
> Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> > After a "zsh -f":
> > 
> > % alias my_echo=echo
> > % false
> > % true &
> > % my_ech[TAB]
> > 
> > A succession of [ESC] . (bound to insert-last-word) gives:
> > 
> >   my_echo&
> >   my_echo&&
> >   my_echo&false
> > 
> > while I would expect:
> > 
> >   my_echo &
> >   my_echo false
> 
> That's a bug:  can you get it to happen with the new completion system (I
> tried briefly and failed)?  I presume there's a gap in the suffix-fixing
> logic for completion.

Actually I noticed the bug with the new completion system.

The bug still occurs by typing

  autoload -U compinit
  compinit

first.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author