about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 64d3eca4..2514bc50 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -114,14 +114,14 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
                 g_timer_start(timer);
             }
 
+            ch = ui_get_char(inp, &size, &result);
+
             ui_handle_special_keys(&ch, result);
 #ifdef HAVE_LIBOTR
             otr_poll();
 #endif
             jabber_process_events();
             ui_update();
-
-            ch = ui_get_char(inp, &size, &result);
         }
 
         inp[size++] = '\0';