From 53b94b89c7037837eb6bf00ea8b71d9f92963f35 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 21 Jun 2009 21:25:58 +0000 Subject: Apply commits r10013 and 10014 to trunk. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10015 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/cio.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/cio.cc') 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) { -- cgit v1.2.3-54-g00ecf