1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Show correct window number for incoming in console

This commit is contained in:
James Booth 2013-08-28 21:29:11 +01:00
parent 9ef7e2d233
commit c08e85193c

View File

@ -140,7 +140,8 @@ void
cons_show_incoming_message(const char * const short_from, const int win_index) cons_show_incoming_message(const char * const short_from, const int win_index)
{ {
ProfWin *console = wins_get_console(); ProfWin *console = wins_get_console();
int ui_index = win_index + 1;
int ui_index = win_index;
if (ui_index == 10) { if (ui_index == 10) {
ui_index = 0; ui_index = 0;
} }