diff options
Diffstat (limited to 'nav.c')
-rw-r--r-- | nav.c | 2 |
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"); |