From d16f78195865c200481123caaa91e52152ffdc41 Mon Sep 17 00:00:00 2001 From: wrmr Date: Sun, 3 Nov 2024 13:32:33 -0500 Subject: move messy internal line navigation logic into doc.c --- doc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc.h') 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 -- cgit 1.4.1-2-gfad0