1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-15 07:06:45 +02:00

make prompt window look like chat/groupchat windows (fixes various bugs, allows history scrolling)

This commit is contained in:
Jfreegman
2014-06-28 18:40:22 -04:00
parent f8998b5891
commit a2e6a25fc8
9 changed files with 53 additions and 193 deletions

View File

@ -214,7 +214,7 @@ static void line_info_check_queue(ToxWindow *self)
int offst = self->is_groupchat ? SIDEBAR_WIDTH : 0; /* offset width of groupchat sidebar */
int lines = 1 + line->newlines + (line->len / (x2 - offst));
int max_y = self->is_prompt ? y2 : y2 - CHATBOX_HEIGHT;
int max_y = y2 - CHATBOX_HEIGHT;
/* move line_start forward proportionate to the number of new lines */
if (y + lines - 1 >= max_y) {
@ -243,9 +243,6 @@ void line_info_print(ToxWindow *self)
int y2, x2;
getmaxyx(self->window, y2, x2);
if (self->is_prompt)
y2 = user_settings->history_size; /* temporary fix to make prompt scroll */
if (x2 <= SIDEBAR_WIDTH)
return;