diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-03 13:39:59 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-03 13:39:59 +0000 |
commit | 437176f5bddd4c4844a93edd750094e4924ee37b (patch) | |
tree | 6c199ec073216fe3b571d2e1f82a9855015255a5 /crawl-ref/source/acr.cc | |
parent | e3ddef14a3959fe718d201732c25db0da42d18f3 (diff) | |
download | crawl-ref-437176f5bddd4c4844a93edd750094e4924ee37b.tar.gz crawl-ref-437176f5bddd4c4844a93edd750094e4924ee37b.zip |
Fix annoying behaviour with cursor being left at the end of prompt lines
instead of centered on the @.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9723 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 32532a4e12..27c39d4abb 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -969,8 +969,6 @@ static void _input() handle_delay(); - _center_cursor(); - if (you_are_delayed() && current_delay_action() != DELAY_MACRO_PROCESS_KEY) { if (you.time_taken) @@ -996,6 +994,12 @@ static void _input() { flush_prev_message(); + clear_macro_process_key_delay(); + + crawl_state.waiting_for_command = true; + c_input_reset(true); + + _center_cursor(); // Enable the cursor to read input. The cursor stays on while // the command is being processed, so subsidiary prompts // shouldn't need to turn it on explicitly. @@ -1004,12 +1008,6 @@ static void _input() #else cursor_control con(true); #endif - - clear_macro_process_key_delay(); - - crawl_state.waiting_for_command = true; - c_input_reset(true); - const command_type cmd = _get_next_cmd(); crawl_state.waiting_for_command = false; |