diff --git a/src/chat.c b/src/chat.c index 2989061..539ec6b 100644 --- a/src/chat.c +++ b/src/chat.c @@ -714,6 +714,7 @@ static void chat_onDraw(ToxWindow *self, Tox *m) line_info_onDraw(self); } else { curs_set(1); + scrollok(ctx->history, 1); if (ctx->len > 0 && !ctx->hst->scroll_mode) { uint8_t line[MAX_STR_SIZE]; diff --git a/src/groupchat.c b/src/groupchat.c index fa177fb..3f459ac 100644 --- a/src/groupchat.c +++ b/src/groupchat.c @@ -546,6 +546,7 @@ static void groupchat_onDraw(ToxWindow *self, Tox *m) if (ctx->hst->scroll_mode) { line_info_onDraw(self); } else { + scrollok(ctx->history, 1); curs_set(1); if (ctx->len > 0) { diff --git a/src/prompt.c b/src/prompt.c index b528e43..64c4817 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -271,8 +271,10 @@ static void prompt_onDraw(ToxWindow *self, Tox *m) getyx(ctx->history, y, x); getmaxyx(ctx->history, y2, x2); - if (!ctx->hst->scroll_mode) + if (!ctx->hst->scroll_mode) { curs_set(1); + scrollok(ctx->history, 1); + } line_info_print(self);