aboutsummaryrefslogtreecommitdiff
path: root/sdn.cpp
diff options
context:
space:
mode:
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++;