diff options
author | James Booth <boothj5@gmail.com> | 2013-08-28 21:29:11 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-08-28 21:29:11 +0100 |
commit | c08e85193cc2da6fc7a4a79b7ee5061b5e4f970b (patch) | |
tree | 1516920c80f1cf2240922808de3103e840c632a6 /src | |
parent | 9ef7e2d233733d32514420c7dd52c104d4fd3f6b (diff) | |
download | profani-tty-c08e85193cc2da6fc7a4a79b7ee5061b5e4f970b.tar.gz |
Show correct window number for incoming in console
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/console.c | 3 |
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; } |