Module Name: src Committed By: blymn Date: Thu Oct 5 06:15:04 UTC 2023
Modified Files: src/lib/libcurses: addbytes.c Log Message: Fix for install/56467 Set x to 0 before calling scroll based on a proposed fix by RVP (thanks!) To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 src/lib/libcurses/addbytes.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/addbytes.c diff -u src/lib/libcurses/addbytes.c:1.68 src/lib/libcurses/addbytes.c:1.69 --- src/lib/libcurses/addbytes.c:1.68 Tue Dec 20 04:57:01 2022 +++ src/lib/libcurses/addbytes.c Thu Oct 5 06:15:03 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: addbytes.c,v 1.68 2022/12/20 04:57:01 blymn Exp $ */ +/* $NetBSD: addbytes.c,v 1.69 2023/10/05 06:15:03 blymn Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)addbytes.c 8.4 (Berkeley) 5/4/94"; #else -__RCSID("$NetBSD: addbytes.c,v 1.68 2022/12/20 04:57:01 blymn Exp $"); +__RCSID("$NetBSD: addbytes.c,v 1.69 2023/10/05 06:15:03 blymn Exp $"); #endif #endif /* not lint */ @@ -584,6 +584,8 @@ _cursesi_addwchar(WINDOW *win, __LINE ** return ERR; __CTRACE(__CTRACE_INPUT, "_cursesi_addwchar: do a scroll\n"); + if (!__NONL) + *x = 0; scroll(win); } newx = win->maxx - 1 + win->ch_off;