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.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/cio.cc b/crawl-ref/source/cio.cc
index d5c87f7e0a..f657204f88 100644
--- a/crawl-ref/source/cio.cc
+++ b/crawl-ref/source/cio.cc
@@ -415,7 +415,7 @@ int line_reader::read_line(bool clear_previous)
if (history)
history->go_end();
- for ( ; ; )
+ while (true)
{
int ch = getchm(c_getch);
@@ -514,8 +514,8 @@ int line_reader::process_key(int ch)
if (!history)
break;
- const std::string *text =
- ch == CK_UP ? history->prev() : history->next();
+ const std::string *text = (ch == CK_UP) ? history->prev()
+ : history->next();
if (text)
{