summaryrefslogtreecommitdiff
path: root/tags.c
diff options
context:
space:
mode:
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!