about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-08-28 21:29:11 +0100
committerJames Booth <boothj5@gmail.com>2013-08-28 21:29:11 +0100
commitc08e85193cc2da6fc7a4a79b7ee5061b5e4f970b (patch)
tree1516920c80f1cf2240922808de3103e840c632a6 /src/ui
parent9ef7e2d233733d32514420c7dd52c104d4fd3f6b (diff)
downloadprofani-tty-c08e85193cc2da6fc7a4a79b7ee5061b5e4f970b.tar.gz
Show correct window number for incoming in console
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index d0b340d9..92671a90 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -140,7 +140,8 @@ void
 cons_show_incoming_message(const char * const short_from, const int win_index)
 {
     ProfWin *console = wins_get_console();
-    int ui_index = win_index + 1;
+
+    int ui_index = win_index;
     if (ui_index == 10) {
         ui_index = 0;
     }