diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 19:38:22 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 19:38:22 +0100 |
| commit | 7fc91b9f199fe96dade005f5fe2f09c8c6486897 (patch) | |
| tree | e1260c5646875628a245a113d86b9a2a4476680f /src/search.h | |
| parent | 67e9328ca1e9074066e9e04e5a06188097bbb7c2 (diff) | |
fix utf8 search text highlight
Diffstat (limited to 'src/search.h')
| -rw-r--r-- | src/search.h | 4 |
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; |
