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 55517.



details:   https://anonhg.NetBSD.org/src/rev/b50b25505e1a
branches:  trunk
changeset: 365819:b50b25505e1a
user:      blymn <blymn%NetBSD.org@localhost>
date:      Tue Apr 26 22:40:32 2022 +0000

description:
Fix for PR 55517.
Actually us x values to recalculate subwin columns.

diffstat:

 lib/libcurses/resize.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2095168ef6cf -r b50b25505e1a lib/libcurses/resize.c
--- a/lib/libcurses/resize.c    Tue Apr 26 15:39:00 2022 +0000
+++ b/lib/libcurses/resize.c    Tue Apr 26 22:40:32 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: resize.c,v 1.34 2022/01/25 03:05:06 blymn Exp $        */
+/*     $NetBSD: resize.c,v 1.35 2022/04/26 22:40:32 blymn Exp $        */
 
 /*
  * Copyright (c) 2001
@@ -33,7 +33,7 @@
 #if 0
 static char sccsid[] = "@(#)resize.c   blymn 2001/08/26";
 #else
-__RCSID("$NetBSD: resize.c,v 1.34 2022/01/25 03:05:06 blymn Exp $");
+__RCSID("$NetBSD: resize.c,v 1.35 2022/04/26 22:40:32 blymn Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -390,7 +390,7 @@
                        if (swin->begx + x > win->begx + win->maxx)
                                x = 0;
                        if (x <= 0)
-                               x += win->begy + win->maxx - swin->begx;
+                               x += win->begx + win->maxx - swin->begx;
                        if (x < 1)
                                x = 1;
                        __resizewin(swin, y, x);



Home | Main Index | Thread Index | Old Index