diff options
author | wrmr | 2024-11-03 13:32:33 -0500 |
---|---|---|
committer | wrmr | 2024-11-03 13:32:33 -0500 |
commit | d16f78195865c200481123caaa91e52152ffdc41 (patch) | |
tree | 4ca9ae1c487f19807018ddf113f1baf608d445c5 /doc.h | |
parent | 332db163a4524552b583776bd3ff172b8eadbf5c (diff) |
move messy internal line navigation logic into doc.c
Diffstat (limited to 'doc.h')
-rw-r--r-- | doc.h | 4 |
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 |