- if (!top) {
- int min_col = top ? COL_MIN : 0;
- int max_col = top ? COL_MAX : getmaxx(parent);
- int min_line = top ? LINE_MIN : 0;
- int max_line = top ? LINE_MAX : getmaxy(parent);
- PAIR *tmp;
- bool more;
-
- show_derwin(win);
- while ((tmp = selectcell(parent,
- win,
- min_line, min_col,
- max_line, max_col,
- TRUE,
- &more)) != 0) {
- if (mvderwin(win, tmp->y, tmp->x) != ERR) {
- refresh_all(win);
- doupdate();
- repaint_one(win);
- doupdate();
- result = TRUE;
- show_derwin(win);
- } else {
- flash();
- }
- if (!more)
- break;
+ int min_col = top ? COL_MIN : 0;
+ int max_col = top ? COL_MAX : getmaxx(parent);
+ int min_line = top ? LINE_MIN : 0;
+ int max_line = top ? LINE_MAX : getmaxy(parent);
+ PAIR *tmp;
+ bool more;
+
+ show_derwin(win);
+ while ((tmp = selectcell(parent,
+ win,
+ min_line, min_col,
+ max_line, max_col,
+ TRUE,
+ &more)) != 0) {
+ if (mvderwin(win, tmp->y, tmp->x) != ERR) {
+ refresh_all(win);
+ doupdate();
+ repaint_one(win);
+ doupdate();
+ result = TRUE;
+ show_derwin(win);
+ } else {
+ flash();