From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3672 invoked from network); 24 Mar 2004 16:39:15 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Mar 2004 16:39:15 -0000 Received: (qmail 19754 invoked by alias); 24 Mar 2004 16:39:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19684 Received: (qmail 19741 invoked from network); 24 Mar 2004 16:39:07 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 24 Mar 2004 16:39:07 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 24 Mar 2004 16:39:6 -0000 Received: (qmail 27628 invoked from network); 24 Mar 2004 16:39:06 -0000 Received: from wbar3.sjo1-4-11-009-147.sjo1.dsl-verizon.net (HELO candle.brasslantern.com) (4.11.9.147) by a.mx.sunsite.dk with SMTP; 24 Mar 2004 16:39:03 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i2OGd0V15766 for zsh-workers@sunsite.dk; Wed, 24 Mar 2004 08:39:00 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040324163900.ZM15765@candle.brasslantern.com> Date: Wed, 24 Mar 2004 16:39:00 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Bug in history-beginning-search-* in 4.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: **** X-Spam-Status: No, hits=4.7 required=6.0 tests=RCVD_IN_DYNABLOCK, RCVD_IN_NJABL,RCVD_IN_NJABL_DIALUP,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 4.7 Starting with: schaefer<504> eval echo this is a test line this is a test line schaefer<505> echo this is a second test line this is a second test line I now invoke predict-on and type e v backspace: schaefer<506> echo this is a second test line schaefer<506> eval echo this is a test line schaefer<506> evcho this is a second test line Note that history-beginning-search-forward worked correctly, but the new text it inserted failed to overwrite the "v". For some reason the ((--CURSOR)) in delete-backward-and-predict didn't stick. This appears to be a bug in history-beginning-search-*. Given this simple widget: back-and-search-forward () { ((--CURSOR)) zle .history-beginning-search-forward } I can reproduce the above bug with history-beginning-search-backward followed by back-and-search-forward.