diff options
author | James Booth <boothj5@gmail.com> | 2013-05-16 23:04:50 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-05-16 23:04:50 +0100 |
commit | e21c2276dcbdb428d56aae62dda2cb6f3d47ef28 (patch) | |
tree | c05efaabc7f2a9edb469e8946b6b090db15e3140 /src/ui | |
parent | 962cb10622a607c6bed228f43cc2ac73248bca91 (diff) | |
download | profani-tty-e21c2276dcbdb428d56aae62dda2cb6f3d47ef28.tar.gz |
Fixed incoming message text in console to use 0 rather than 10
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index a3a46a5e..c9778b28 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -136,9 +136,13 @@ cons_show_typing(const char * const short_from) void cons_show_incoming_message(const char * const short_from, const int win_index) { + int ui_index = win_index + 1; + if (ui_index == 10) { + ui_index = 0; + } win_print_time(console, '-'); wattron(console->win, COLOUR_INCOMING); - wprintw(console->win, "<< incoming from %s (%d)\n", short_from, win_index + 1); + wprintw(console->win, "<< incoming from %s (%d)\n", short_from, ui_index); wattroff(console->win, COLOUR_INCOMING); ui_console_dirty(); |