1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 11:33:27 +01:00

fix scrolling bug

This commit is contained in:
Jfreegman 2014-06-18 18:29:07 -04:00
parent 0cff881d69
commit ca98b49813
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -222,7 +222,7 @@ static void line_info_check_queue(ToxWindow *self)
/* move line_start forward proportionate to the number of new lines */
if (y + lines - 1 >= max_y) {
while (lines > 0 && hst->line_start->next) {
lines -= 1 + hst->line_start->newlines + (hst->line_start->len / (x2 - offst));
lines -= 1 + hst->line_start->next->newlines + (hst->line_start->next->len / (x2 - offst));
hst->line_start = hst->line_start->next;
++hst->start_id;
}