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

smart-insert-last-word bug in zsh 5.0.7



With zsh 5.0.7 under Debian (Debian package):

ypig% autoload -U smart-insert-last-word
ypig% zle -N insert-last-word smart-insert-last-word
ypig% echo abc def
abc def

Then I type:

  echo [Esc].[Left][Backspace][Ctrl-e] [Esc].

I get successively:

  echo def[ ]
  echo de[f]
  echo d[f]
  echo df[ ]
  echo df [ ]
  echo smart-insert-last-word[ ]

where [] is the position of the cursor. The second [Esc]. should have
given:

  echo df def[ ]

like without smart-insert-last-word.

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



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