From 03ef257fdcfb3c163b46867755d03663a4f0ab0a Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Tue, 3 Dec 2013 05:18:49 -0500 Subject: [PATCH] small fix --- src/groupchat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/groupchat.c b/src/groupchat.c index 600b7a8..8db52a1 100644 --- a/src/groupchat.c +++ b/src/groupchat.c @@ -194,6 +194,10 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu wattroff(ctx->history, A_BOLD); wprintw(ctx->history, " has left the room\n"); wattroff(ctx->history, COLOR_PAIR(RED)); + + if (groupchats[self->num].side_pos > 0) + --groupchats[self->num].side_pos; + break; case TOX_CHAT_CHANGE_PEER_NAME: wattron(ctx->history, COLOR_PAIR(MAGENTA));