case '\n':
(void) strncpy(answer, p_answer, buffer);
answer[buffer - 1] = '\0';
- Strcpy(toplines, tmpbuf);
+ Strcpy(g.toplines, tmpbuf);
mesg_add_line(tmpbuf);
+ #if 1
+ /* position at end of current line so next message will be
+ written on next line regardless of whether it could fit here */
+ mx = border_space ? (width + 1) : (width - 1);
+ wmove(win, my, mx);
+ #else /* after various other changes, this resulted in getline()
+ * prompt+answer being following by a blank message line */
if (++my > maxy) {
scroll_window(MESSAGE_WIN);
my--;