summary refs log tree commit diff
path: root/nav.c
diff options
context:
space:
mode:
authorwrmr2024-11-06 02:09:26 -0500
committerwrmr2024-11-06 02:09:26 -0500
commita3f7fb80590705c1a7d7b42edd8f5f1362f09cfa (patch)
tree8d12c8f92c13c327571e77b8604b25801520afc7 /nav.c
parentd2c280d441ddf974c90447d0a9252f5711802304 (diff)
MORE prompt
Diffstat (limited to 'nav.c')
-rw-r--r--nav.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nav.c b/nav.c
index 0a3e773..8456a76 100644
--- a/nav.c
+++ b/nav.c
@@ -129,3 +129,8 @@ int nav_link_nr(struct nav_state *ns, unsigned long link_nr) {
 	}
 	return 0;
 }
+
+void nav_prompt(struct nav_state *ns) {
+	int m = doc_line_nextp(&ns->histv[ns->cur_doc], ns->cur_ofs[ns->cur_doc]);
+	fputs(m ? "MORE* " : "* ", stdout);
+}