From 7fc91b9f199fe96dade005f5fe2f09c8c6486897 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 3 Mar 2024 19:38:22 +0100 Subject: fix utf8 search text highlight --- src/search.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/search.h') diff --git a/src/search.h b/src/search.h index 73eb17a..008d835 100644 --- a/src/search.h +++ b/src/search.h @@ -43,8 +43,8 @@ typedef struct t_ts_file_match { ts_found_file* file; int line_nr; - int word_match_offset; - int word_match_length; + int word_match_offset; // nr of bytes, not codepoints. + int word_match_length; // nr of bytes, not codepoints. utf8_int8_t *line_info; } ts_file_match; -- cgit v1.2.3-70-g09d2