1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-09-28 00:25:35 +02:00

fix scrolling bug

This commit is contained in:
Jfreegman 2014-03-29 04:40:35 -04:00
parent 26640cda14
commit d873181306
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
3 changed files with 5 additions and 1 deletions

View File

@ -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];

View File

@ -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) {

View File

@ -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);