summary refs log tree commit diff
path: root/nav.c
diff options
context:
space:
mode:
authorwrmr2024-11-09 01:51:42 -0500
committerwrmr2024-11-09 01:51:42 -0500
commitcbb9f606333774f4de6f639891cd1411419ecf2a (patch)
tree9b75436effccbcd065c32f207f93fce051c64982 /nav.c
parent9ac1ca968081bcb826cf9ee70666bc44983d087f (diff)
use actual console size for nav_lines(), instead of dummy value
Diffstat (limited to 'nav.c')
-rw-r--r--nav.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nav.c b/nav.c
index 5e5d8ea..18b21db 100644
--- a/nav.c
+++ b/nav.c
@@ -5,6 +5,7 @@
 #include "net.h"
 #include "err.h"
 #include "parse.h"
+#include "con.h"
 
 /* history */
 
@@ -50,7 +51,7 @@ void nav_next(struct nav_state *ns) {
 /* paging */
 
 size_t pg_lines(void) {
-	return 24;
+	return con_lines() - 1;
 }
 
 struct doc_line *nav_cur_line(struct nav_state *ns) {