Module Name:    src
Committed By:   blymn
Date:           Tue Oct  1 11:41:15 UTC 2013

Modified Files:
        src/lib/libcurses: getstr.c

Log Message:
Use the internal version of touchline to update the line.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libcurses/getstr.c

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

Modified files:

Index: src/lib/libcurses/getstr.c
diff -u src/lib/libcurses/getstr.c:1.22 src/lib/libcurses/getstr.c:1.23
--- src/lib/libcurses/getstr.c:1.22	Fri Jan 27 15:37:09 2012
+++ src/lib/libcurses/getstr.c	Tue Oct  1 11:41:14 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: getstr.c,v 1.22 2012/01/27 15:37:09 christos Exp $	*/
+/*	$NetBSD: getstr.c,v 1.23 2013/10/01 11:41:14 blymn Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -35,7 +35,7 @@
 #if 0
 static char sccsid[] = "@(#)getstr.c	8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: getstr.c,v 1.22 2012/01/27 15:37:09 christos Exp $");
+__RCSID("$NetBSD: getstr.c,v 1.23 2013/10/01 11:41:14 blymn Exp $");
 #endif
 #endif				/* not lint */
 
@@ -178,7 +178,7 @@ __wgetnstr(WINDOW *win, char *str, int n
 		    win, c, remain);
 #endif
 		*str = c;
-		touchline(win, win->cury, 1);
+		__touchline(win, win->cury, 0, (int) win->maxx - 1);
 		if (c == ec || c == KEY_BACKSPACE || c == KEY_LEFT) {
 			*str = '\0';
 			if (str != ostr) {

Reply via email to