From 4c4a64bff49df487d9de0b50300fff2f32bcf3a7 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 23 Mar 2026 02:59:56 +0100 Subject: Move pages by visible lines --- sdn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sdn.cpp') diff --git a/sdn.cpp b/sdn.cpp index 9e9a5ab..7d06725 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -1636,10 +1636,10 @@ fun handle (Key k) -> bool { break; case ACTION_PAGE_PREVIOUS: - g.cursor -= LINES; + g.cursor -= visible_lines (); break; case ACTION_PAGE_NEXT: - g.cursor += LINES; + g.cursor += visible_lines (); break; case ACTION_SCROLL_DOWN: g.offset++; -- cgit v1.2.3-70-g09d2