summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-01-29 22:22:54 +0100
committerAlbert Cervin <albert@acervin.com>2023-01-29 22:22:54 +0100
commitf90d5e1f07fdc9dea7c24b11107049b613a5be7a (patch)
treed4e3ba84f198738fd68f225b2d03f34b2653acb1 /src/text.h
parent94278ec39b08b4085fa920f870261eb7639baa6b (diff)
downloaddged-f90d5e1f07fdc9dea7c24b11107049b613a5be7a.tar.gz
dged-f90d5e1f07fdc9dea7c24b11107049b613a5be7a.tar.xz
dged-f90d5e1f07fdc9dea7c24b11107049b613a5be7a.zip
More tests and documentation
Also improve find file and switch buffer a bit. Implement word backward/forward.
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/text.h b/src/text.h
index 213cf9e..85eb522 100644
--- a/src/text.h
+++ b/src/text.h
@@ -29,6 +29,8 @@ uint32_t text_num_lines(struct text *text);
uint32_t text_line_length(struct text *text, uint32_t lineidx);
uint32_t text_line_size(struct text *text, uint32_t lineidx);
uint32_t text_col_to_byteindex(struct text *text, uint32_t line, uint32_t col);
+uint32_t text_byteindex_to_col(struct text *text, uint32_t line,
+ uint32_t byteindex);
struct text_chunk {
uint8_t *text;