summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/cio.cc')
-rw-r--r--crawl-ref/source/cio.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc
index 6f95297d84..87f37df0cd 100644
--- a/crawl-ref/source/cio.cc
+++ b/crawl-ref/source/cio.cc
@@ -300,6 +300,7 @@ int cancelable_get_line( char *buf, int len, int maxcol,
input_history *mh, int (*keyproc)(int &ch) )
{
flush_prev_message();
+
line_reader reader(buf, len, maxcol);
reader.set_input_history(mh);
reader.set_keyproc(keyproc);
@@ -408,7 +409,7 @@ int line_reader::read_line(bool clear_previous)
if (bufsz <= 0)
return (false);
- cursor_control coff(true);
+ cursor_control con(true);
if (clear_previous)
*buffer = 0;