Module Name:    src
Committed By:   mrg
Date:           Wed Jun 22 03:56:17 UTC 2011

Modified Files:
        src/bin/ksh: vi.c

Log Message:
add a missing part from rev 1.10 and s/newline/newlinex/.  found by GCC 4.5.3.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/bin/ksh/vi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/ksh/vi.c
diff -u src/bin/ksh/vi.c:1.11 src/bin/ksh/vi.c:1.12
--- src/bin/ksh/vi.c:1.11	Sat Apr 25 05:11:37 2009
+++ src/bin/ksh/vi.c	Wed Jun 22 03:56:17 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: vi.c,v 1.11 2009/04/25 05:11:37 lukem Exp $	*/
+/*	$NetBSD: vi.c,v 1.12 2011/06/22 03:56:17 mrg Exp $	*/
 
 /*
  *	vi command editing
@@ -9,7 +9,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: vi.c,v 1.11 2009/04/25 05:11:37 lukem Exp $");
+__RCSID("$NetBSD: vi.c,v 1.12 2011/06/22 03:56:17 mrg Exp $");
 #endif
 
 #include "config.h"
@@ -1763,7 +1763,7 @@
 	int newlinex;
 {
 	(void) memset(wbuf[win], ' ', wbuf_len);
-	if (newline) {
+	if (newlinex) {
 		x_putc('\r');
 		x_putc('\n');
 	}

Reply via email to