Module Name: src
Committed By: blymn
Date: Tue Apr 26 22:40:32 UTC 2022
Modified Files:
src/lib/libcurses: resize.c
Log Message:
Fix for PR 55517.
Actually us x values to recalculate subwin columns.
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libcurses/resize.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/resize.c
diff -u src/lib/libcurses/resize.c:1.34 src/lib/libcurses/resize.c:1.35
--- src/lib/libcurses/resize.c:1.34 Tue Jan 25 03:05:06 2022
+++ src/lib/libcurses/resize.c Tue Apr 26 22:40:32 2022
@@ -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 @@ __resizewin(WINDOW *win, int nlines, int
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);