diff options
| author | Albert Cervin <albert@acervin.com> | 2024-01-29 23:34:07 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2024-01-30 15:04:44 +0100 |
| commit | dda591fa33ac10c433289aa3ee862c3ded41eed3 (patch) | |
| tree | 9a25edbc810fd5d8fbc20f367c71ebcd81bb6026 /src/dged/text.h | |
| parent | 880199011075afd4f2d9bd16c7ce42a04741b5b7 (diff) | |
| download | dged-dda591fa33ac10c433289aa3ee862c3ded41eed3.tar.gz dged-dda591fa33ac10c433289aa3ee862c3ded41eed3.tar.xz dged-dda591fa33ac10c433289aa3ee862c3ded41eed3.zip | |
Syntax highlight is a go
Diffstat (limited to 'src/dged/text.h')
| -rw-r--r-- | src/dged/text.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dged/text.h b/src/dged/text.h index e3bb3e4..922014e 100644 --- a/src/dged/text.h +++ b/src/dged/text.h @@ -34,6 +34,7 @@ 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); +uint32_t text_global_idx(struct text *text, uint32_t line, uint32_t col); struct text_chunk { uint8_t *text; |
