* Copyright (c) 1981 Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)id_subwins.c 5.7 (Berkeley) %G%";
* Re-sync the pointers to lines for all the subwindows.
register int oy
, realy
, y
;
realy
= orig
->begy
+ orig
->cury
;
for (win
= orig
->nextp
; win
!= orig
; win
= win
->nextp
) {
* If the window ends before our current position, don't need
if (win
->begy
+ win
->maxy
<= realy
)
for (y
= realy
- win
->begy
; y
< win
->maxy
; y
++, oy
++)
&orig
->lines
[oy
]->line
[win
->ch_off
];