- wwsetcursor(row, col);
- while (bpeekc() < 0)
- bread();
- wwunbox(boxwin);
- switch (getpos(&row, &col, 1, 0,
- wwnrow - w->ww_w.nr, wwncol - w->ww_w.nc)) {
- case -1:
+ getminmax(row, w->ww_w.nr, 1, wwnrow,
+ &currow, &minrow, &maxrow);
+ getminmax(col, w->ww_w.nc, 0, wwncol,
+ &curcol, &mincol, &maxcol);
+ wwsetcursor(currow, curcol);
+ while (wwpeekc() < 0)
+ wwiomux();
+ switch (getpos(&row, &col, minrow, mincol, maxrow, maxcol)) {
+ case 3:
+ wwunbox(boxwin);