💾 Archived View for thrig.me › blog › 2023 › 06 › 19 › amfora-pager.patch captured on 2024-03-21 at 15:50:36.

View Raw

More Information

⬅️ Previous capture (2023-07-10)

-=-=-=-=-=-=-

--- display/tab.go
+++ display/tab.go
@@ -350,20 +350,18 @@ func (t *tab) addToHistory(u string) {
 	t.historyCachePage()                                                      // Fill it with data
 }
 
-// pageUp scrolls up 75% of the height of the terminal, like Bombadillo.
 func (t *tab) pageUp() {
-	t.page.Row -= termH / 2
+	t.page.Row -= termH - 4
 	if t.page.Row < 0 {
 		t.page.Row = 0
 	}
 	t.applyScroll()
 }
 
-// pageDown scrolls down 75% of the height of the terminal, like Bombadillo.
 func (t *tab) pageDown() {
 	height, _ := t.view.GetBufferSize()
 
-	t.page.Row += termH / 2
+	t.page.Row += termH - 4
 	if t.page.Row > height {
 		t.page.Row = height
 	}