about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-10-21 16:52:07 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-10-21 16:52:07 +0200
commit5ebd7df7e8ae600820358d2edd7196475826fb46 (patch)
tree33c009e488b4fab7110447de3bc611cc7bb988fe
parente5f506a200367577f8a288c405bc5f0275b55e77 (diff)
downloadprofani-tty-5ebd7df7e8ae600820358d2edd7196475826fb46.tar.gz
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 c84b1b5e5d038684a6a475a251b738c3c5ffb9a5.
-rw-r--r--src/ui/window.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 269affbd..36a5b70b 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -632,10 +632,6 @@ win_page_up(ProfWin* window)
     int page_space = rows - 4;
     int* page_start = &(window->layout->y_pos);
 
-    // dont need to scroll
-    if (*page_start == 0)
-        return;
-
     *page_start -= page_space;
 
     if (*page_start == -page_space && window->type == WIN_CHAT) {