From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1151 invoked by alias); 12 Jun 2015 09:27:29 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35449 Received: (qmail 12674 invoked from network); 12 Jun 2015 09:27:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.0 Date: Fri, 12 Jun 2015 11:16:27 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: smart-insert-last-word bug in zsh 5.0.7 Message-ID: <20150612091627.GA10815@ypig.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6449-vl-r76280 (2015-05-18) 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)