Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Allow a subwindow to contain another subwindow.



details:   https://anonhg.NetBSD.org/src/rev/38d3058a2eb7
branches:  trunk
changeset: 826634:38d3058a2eb7
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Sep 18 10:18:13 2017 +0000

description:
Allow a subwindow to contain another subwindow.

This reverts r1.37 and allows wip/rtv to work better.

diffstat:

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

diffs (27 lines):

diff -r 793483ef919f -r 38d3058a2eb7 lib/libcurses/newwin.c
--- a/lib/libcurses/newwin.c    Mon Sep 18 08:49:20 2017 +0000
+++ b/lib/libcurses/newwin.c    Mon Sep 18 10:18:13 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newwin.c,v 1.50 2017/01/06 13:53:18 roy Exp $  */
+/*     $NetBSD: newwin.c,v 1.51 2017/09/18 10:18:13 roy Exp $  */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)newwin.c   8.3 (Berkeley) 7/27/94";
 #else
-__RCSID("$NetBSD: newwin.c,v 1.50 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: newwin.c,v 1.51 2017/09/18 10:18:13 roy Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -190,7 +190,7 @@
        __CTRACE(__CTRACE_WINDOW, "subwin: (%p, %d, %d, %d, %d, %d)\n",
            orig, nlines, ncols, by, bx, ispad);
 #endif
-       if (orig == NULL || orig->orig != NULL)
+       if (orig == NULL)
                return NULL;
 
        /* Make sure window fits inside the original one. */



Home | Main Index | Thread Index | Old Index