summary refs log tree commit diff
path: root/doc.h
diff options
context:
space:
mode:
authorwrmr2024-11-03 13:32:33 -0500
committerwrmr2024-11-03 13:32:33 -0500
commitd16f78195865c200481123caaa91e52152ffdc41 (patch)
tree4ca9ae1c487f19807018ddf113f1baf608d445c5 /doc.h
parent332db163a4524552b583776bd3ff172b8eadbf5c (diff)
move messy internal line navigation logic into doc.c
Diffstat (limited to 'doc.h')
-rw-r--r--doc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc.h b/doc.h
index 496b631..972134b 100644
--- a/doc.h
+++ b/doc.h
@@ -30,4 +30,8 @@ void doc_add_line(struct doc *, const char *);
 void doc_add_text(struct doc *, const char *);
 void doc_add_textn(struct doc *, const char *, size_t);
 
+struct doc_line *doc_line_at(struct doc *d, size_t ofs);
+int doc_line_prev(struct doc *d, size_t *ofs);
+int doc_line_next(struct doc *d, size_t *ofs);
+
 #endif