mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed incoming message text in console to use 0 rather than 10
This commit is contained in:
parent
962cb10622
commit
e21c2276dc
@ -136,9 +136,13 @@ cons_show_typing(const char * const short_from)
|
|||||||
void
|
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)
|
||||||
{
|
{
|
||||||
|
int ui_index = win_index + 1;
|
||||||
|
if (ui_index == 10) {
|
||||||
|
ui_index = 0;
|
||||||
|
}
|
||||||
win_print_time(console, '-');
|
win_print_time(console, '-');
|
||||||
wattron(console->win, COLOUR_INCOMING);
|
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);
|
wattroff(console->win, COLOUR_INCOMING);
|
||||||
|
|
||||||
ui_console_dirty();
|
ui_console_dirty();
|
||||||
|
Loading…
Reference in New Issue
Block a user