aboutsummaryrefslogtreecommitdiff
path: root/sdn.cpp
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2026-03-23 02:59:56 +0100
committerPřemysl Eric Janouch <p@janouch.name>2026-03-23 03:01:14 +0100
commit4c4a64bff49df487d9de0b50300fff2f32bcf3a7 (patch)
tree8f452690fc1556d86bd5ee4d98eee1b5406007d6 /sdn.cpp
parentd1e54fee0d442b601c6d9b69ae8666f6a589eb52 (diff)
downloadsdn-4c4a64bff49df487d9de0b50300fff2f32bcf3a7.tar.gz
sdn-4c4a64bff49df487d9de0b50300fff2f32bcf3a7.tar.xz
sdn-4c4a64bff49df487d9de0b50300fff2f32bcf3a7.zip
Move pages by visible linesHEADorigin/mastermaster
Diffstat (limited to 'sdn.cpp')
-rw-r--r--sdn.cpp4
1 files changed, 2 insertions, 2 deletions
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++;