diff options
author | pommicket <pommicket@gmail.com> | 2023-08-05 13:55:53 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-05 13:55:53 -0400 |
commit | 4ab3631aadcd27df708a16f6bf22953e0ff9b1cf (patch) | |
tree | 4fca0b612ae40cf8723c4c57fd0243631f7e51e7 /tags.c | |
parent | 601c081d62e0cd9c0e6750b424ecc5baa9a45b5f (diff) |
internalize Line structure
Diffstat (limited to 'tags.c')
-rw-r--r-- | tags.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -325,8 +325,8 @@ top:; pcre2_match_data *match_data = pcre2_match_data_create(10, NULL); if (match_data) { for (u32 line_idx = 0; line_idx < buffer->nlines; ++line_idx) { - Line *line = &buffer->lines[line_idx]; - int n = pcre2_match(code, line->str, line->len, 0, PCRE2_NOTEMPTY, + String32 line = buffer_get_line(buffer, line_idx); + int n = pcre2_match(code, line.str, line.len, 0, PCRE2_NOTEMPTY, match_data, NULL); if (n == 1) { // found it! |