From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15200 invoked from network); 22 Nov 1998 01:55:17 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 22 Nov 1998 01:55:17 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id UAA15811; Sat, 21 Nov 1998 20:54:25 -0500 (EST) Resent-Date: Sat, 21 Nov 1998 20:54:25 -0500 (EST) From: "Bart Schaefer" Message-Id: <981121175305.ZM28860@candle.brasslantern.com> Date: Sat, 21 Nov 1998 17:53:05 -0800 X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@math.gatech.edu Subject: PATCH: 3.1.5 or 3.0.5 - vi-forward-word gets stuck at end of line MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"pAn9d1.0.xs3.HxsLs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4678 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu When editing a multi-line buffer, vi-forward-word won't cross end of line when iident() is true for the character immediately before the newline. This patch is against 3.1.5 but can be applied to Src/zle_word.c in 3.0.5. Index: Src/Zle/zle_word.c =================================================================== RCS file: /extra/cvsroot/zsh/zsh-3.1/Src/Zle/zle_word.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 zle_word.c --- zle_word.c 1998/06/01 17:08:46 1.1.1.1 +++ zle_word.c 1998/11/22 01:43:14 @@ -73,7 +73,7 @@ cs++; if (wordflag && !n) return; - while (cs != ll && iblank(line[cs])) + while (cs != ll && (iblank(line[cs]) || line[cs] == '\n')) cs++; } } -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com