Module Name: src Committed By: blymn Date: Thu May 19 07:41:26 UTC 2022
Modified Files: src/lib/libcurses: addbytes.c Log Message: Set the last change pointer after adding a character at the bottom right of a window. This fixes the character missing in the LR of a window. Thanks to uwe@ for pointing this out. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 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.63 src/lib/libcurses/addbytes.c:1.64 --- src/lib/libcurses/addbytes.c:1.63 Tue May 3 07:25:34 2022 +++ src/lib/libcurses/addbytes.c Thu May 19 07:41:26 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: addbytes.c,v 1.63 2022/05/03 07:25:34 blymn Exp $ */ +/* $NetBSD: addbytes.c,v 1.64 2022/05/19 07:41:26 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.63 2022/05/03 07:25:34 blymn Exp $"); +__RCSID("$NetBSD: addbytes.c,v 1.64 2022/05/19 07:41:26 blymn Exp $"); #endif #endif /* not lint */ @@ -588,6 +588,7 @@ _cursesi_addwchar(WINDOW *win, __LINE ** } lp = &win->alines[*y]->line[0]; (*lnp) = win->alines[*y]; + *(*lnp)->lastchp = win->ch_off + win->maxx - 1; } else { /* clear the remaining of the current character */