Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Set the last change pointer after adding a cha...



details:   https://anonhg.NetBSD.org/src/rev/fe43f9f47180
branches:  trunk
changeset: 366226:fe43f9f47180
user:      blymn <blymn%NetBSD.org@localhost>
date:      Thu May 19 07:41:26 2022 +0000

description:
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.

diffstat:

 lib/libcurses/addbytes.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2f4ad8aae184 -r fe43f9f47180 lib/libcurses/addbytes.c
--- a/lib/libcurses/addbytes.c  Thu May 19 07:10:15 2022 +0000
+++ b/lib/libcurses/addbytes.c  Thu May 19 07:41:26 2022 +0000
@@ -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 @@
                }
                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 */



Home | Main Index | Thread Index | Old Index