summary refs log tree commit diff
path: root/doc.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc.c')
-rw-r--r--doc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc.c b/doc.c
index 3f63ba8..89ff756 100644
--- a/doc.c
+++ b/doc.c
@@ -59,6 +59,11 @@ unsigned short doc_add_link(struct doc *d, const char *url) {
 	return d->linkc++;
 }
 
+void doc_set_link(struct doc *d, unsigned short lnk) {
+	struct doc_line *l = doc_line_at(d, d->latest);
+	l->link = lnk;
+}
+
 /* line navigation */
 
 struct doc_line *doc_line_at(struct doc *d, size_t ofs) {