$NetBSD: patch-ag,v 1.1 2006/12/12 03:37:30 dogcow Exp $ --- ../cl/cl_funcs.c.orig 2001-06-26 01:19:05.000000000 +1000 +++ ../cl/cl_funcs.c 2006-12-03 15:21:22.000000000 +1000 @@ -381,7 +381,7 @@ if (CLSP(discardp)) { delwin(CLSP(discardp)); - CLSP(discardp) = NULL; + discardp->cl_private = NULL; } } @@ -395,7 +395,7 @@ if (CLSP(tsp)) delwin(CLSP(tsp)); - CLSP(tsp) = subwin(stdscr, tsp->rows, tsp->cols, + tsp->cl_private = subwin(stdscr, tsp->rows, tsp->cols, tsp->roff, tsp->coff); } @@ -716,9 +716,9 @@ if (CLSP(origp)) delwin(CLSP(origp)); - CLSP(origp) = subwin(stdscr, origp->rows, origp->cols, + origp->cl_private = subwin(stdscr, origp->rows, origp->cols, origp->roff, origp->coff); - CLSP(newp) = subwin(stdscr, newp->rows, newp->cols, + newp->cl_private = subwin(stdscr, newp->rows, newp->cols, newp->roff, newp->coff); /* origp is the original screen, giving up space to newp. */