summary refs log tree commit diff
path: root/nav.c
diff options
context:
space:
mode:
authorwrmr2024-11-09 02:21:17 -0500
committerwrmr2024-11-09 02:21:17 -0500
commit2780add3f90c284cbb08f2b3a2ad83aeb472d4e0 (patch)
treeee607b663d5e0896935380f0d509210172144171 /nav.c
parent38987f3f5a3919ac81ba419e05ac8610c269faff (diff)
print url to stderr not stdout, and for normal nav as well as links
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 8a520ac..7d5af9e 100644
--- a/nav.c
+++ b/nav.c
@@ -101,6 +101,7 @@ int nav_to(struct nav_state *ns, const char *url) {
 	enum doc_type doct;
 	struct addr adr;
 	str_t buf;
+	perr(url);
 	if (net_addr(url, &adr, ns->prot_default)) {
 		return -1;
 	}
@@ -123,7 +124,6 @@ int nav_link_nr(struct nav_state *ns, unsigned long link_nr) {
 	struct doc *d = &ns->histv[ns->cur_doc];
 	const char *url = doc_get_link(d, link_nr);
 	if (url) {
-		puts(url);
 		return nav_to(ns, url);
 	} else {
 		perr("invalid link number");