summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 69d1859a53..e58c4f5bf2 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -275,7 +275,14 @@ void message_out(int which_line, int color, const char *s, int firstcol,
getyx(Message_Window, y, x);
scroll(Message_Window);
wmove(Message_Window, y - 1, x);
- move(y - 1 + VIEW_EY, x);
+ }
+
+ // Fix stdscr cursor to same place as Message_Window cursor. This
+ // is necessary because when reading input we use stdscr.
+ {
+ int x, y;
+ getyx(Message_Window, y, x);
+ move(y + VIEW_EY, x);
}
wrefresh(Message_Window);