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.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 55273b343f..00cbed4302 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -270,7 +270,12 @@ void message_out(int which_line, int color, const char *s, int firstcol,
mvwaddstr(Message_Window, which_line, firstcol, s);
if (newline && which_line == get_message_window_height() - 1)
+ {
+ int x, y;
+ getyx(Message_Window, y, x);
scroll(Message_Window);
+ wmove(Message_Window, y - 1, x);
+ }
wrefresh(Message_Window);
}