diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 7bd403da..e25002d6 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -598,6 +598,10 @@ 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; // went past beginning, show first page |