From dda591fa33ac10c433289aa3ee862c3ded41eed3 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Mon, 29 Jan 2024 23:34:07 +0100 Subject: Syntax highlight is a go --- src/dged/text.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dged/text.h') 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; -- cgit v1.2.3