Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Fix for PR 56243
details: https://anonhg.NetBSD.org/src/rev/d302274e705b
branches: trunk
changeset: 365839:d302274e705b
user: blymn <blymn%NetBSD.org@localhost>
date: Wed Apr 27 22:04:04 2022 +0000
description:
Fix for PR 56243
clear the past EOL flags when moving the cursor - they are no longer
valid as move cannot put the cursor past the EOL.
diffstat:
lib/libcurses/move.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r dcaa9bb09985 -r d302274e705b lib/libcurses/move.c
--- a/lib/libcurses/move.c Wed Apr 27 17:38:52 2022 +0000
+++ b/lib/libcurses/move.c Wed Apr 27 22:04:04 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: move.c,v 1.23 2021/10/19 06:41:03 blymn Exp $ */
+/* $NetBSD: move.c,v 1.24 2022/04/27 22:04:04 blymn Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.2 (Berkeley) 5/4/94";
#else
-__RCSID("$NetBSD: move.c,v 1.23 2021/10/19 06:41:03 blymn Exp $");
+__RCSID("$NetBSD: move.c,v 1.24 2022/04/27 22:04:04 blymn Exp $");
#endif
#endif /* not lint */
@@ -68,6 +68,10 @@
if (x >= win->maxx || y >= win->maxy)
return ERR;
+ /* clear the EOL flags for both where we were and where we are going */
+ win->alines[win->cury]->flags &= ~ __ISPASTEOL;
+ win->alines[y]->flags &= ~ __ISPASTEOL;
+
win->curx = x;
win->cury = y;
Home |
Main Index |
Thread Index |
Old Index