Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
smart-insert-last-word bug in zsh 5.0.7
- X-seq: zsh-workers 35449
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: smart-insert-last-word bug in zsh 5.0.7
- Date: Fri, 12 Jun 2015 11:16:27 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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