summaryrefslogtreecommitdiff
path: root/src/search.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-03 19:38:22 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-03 19:38:22 +0100
commit7fc91b9f199fe96dade005f5fe2f09c8c6486897 (patch)
treee1260c5646875628a245a113d86b9a2a4476680f /src/search.h
parent67e9328ca1e9074066e9e04e5a06188097bbb7c2 (diff)
fix utf8 search text highlight
Diffstat (limited to 'src/search.h')
-rw-r--r--src/search.h4
1 files changed, 2 insertions, 2 deletions
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;