summary refs log tree commit diff
path: root/nav.c
diff options
context:
space:
mode:
Diffstat (limited to 'nav.c')
-rw-r--r--nav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nav.c b/nav.c
index 7d5af9e..1067c8b 100644
--- a/nav.c
+++ b/nav.c
@@ -51,7 +51,7 @@ void nav_next(struct nav_state *ns) {
 /* paging */
 
 size_t pg_lines(void) {
-	return con_lines() - 1;
+	return con_rows() - 1;
 }
 
 struct doc_line *nav_cur_line(struct nav_state *ns) {