if (cw->npages > 1)
Sprintf(cw->morestr, "(%d of %d)",
curr_page + 1, (int) cw->npages);
- else
+ else if (msave)
Strcpy(cw->morestr, msave);
+ else
+ Strcpy(cw->morestr, defmorestr);
tty_curs(window, 1, page_lines);
cl_end();
} else
tty_clear_nhwindow(WIN_MESSAGE);
- if (cw->data)
+ if (cw->data || !cw->maxrow)
process_text_window(window, cw);
else
process_menu_window(window, cw);
} else if(u.ux) docrt();
} else {
winid datawin = tty_create_nhwindow(NHW_TEXT);
+ boolean empty = TRUE;
+
if(complain
#ifndef NO_TERMS
&& nh_CD
if ((cr = index(buf, '\r')) != 0) *cr = 0;
#endif
if (index(buf, '\t') != 0) (void) tabexpand(buf);
+ empty = FALSE;
tty_putstr(datawin, 0, buf);
if(wins[datawin]->flags & WIN_CANCELLED)
break;
}
- tty_display_nhwindow(datawin, FALSE);
+ if (!empty) tty_display_nhwindow(datawin, FALSE);
tty_destroy_nhwindow(datawin);
(void) dlb_fclose(f);
}