1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Let users scroll up again

We removed this so that we don't get "[SCROLLED]" in the titlebar when
there is actually not more text available.

But now with MAM we can enable this again so that the user can scroll up
and load more text out of the database.

Maybe this also could use a check.

This reverts commit c84b1b5e5d.
This commit is contained in:
Michael Vetter 2022-10-21 16:52:07 +02:00
parent e5f506a200
commit 5ebd7df7e8

View File

@ -632,10 +632,6 @@ win_page_up(ProfWin* window)
int page_space = rows - 4; int page_space = rows - 4;
int* page_start = &(window->layout->y_pos); int* page_start = &(window->layout->y_pos);
// dont need to scroll
if (*page_start == 0)
return;
*page_start -= page_space; *page_start -= page_space;
if (*page_start == -page_space && window->type == WIN_CHAT) { if (*page_start == -page_space && window->type == WIN_CHAT) {