summaryrefslogtreecommitdiff
path: root/tags.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-05 13:55:53 -0400
committerpommicket <pommicket@gmail.com>2023-08-05 13:55:53 -0400
commit4ab3631aadcd27df708a16f6bf22953e0ff9b1cf (patch)
tree4fca0b612ae40cf8723c4c57fd0243631f7e51e7 /tags.c
parent601c081d62e0cd9c0e6750b424ecc5baa9a45b5f (diff)
internalize Line structure
Diffstat (limited to 'tags.c')
-rw-r--r--tags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tags.c b/tags.c
index 16c005a..95f5e5b 100644
--- a/tags.c
+++ b/tags.c
@@ -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!