From a20f522fd61698282d3e01931260c588dd7f40b1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 2 May 2024 13:48:20 -0400 Subject: Support space indents --- tomo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tomo.c') diff --git a/tomo.c b/tomo.c index 0aed42ba..168b8027 100644 --- a/tomo.c +++ b/tomo.c @@ -173,7 +173,7 @@ static void build_file_dependency_graph(const char *filename, table_t *dependenc file_t *f = load_file(to_scan[s]); if (!f) errx(1, "Couldn't find file: %s", to_scan[s]); for (int64_t i = 0; i < f->num_lines; i++) { - const char *line = f->text + f->lines[i].offset; + const char *line = f->text + f->line_offsets[i]; const char *prefix = "#include \""; if (strncmp(line, prefix, strlen(prefix)) == 0) { char *tmp = realpath(heap_strf("%s/%.*s", file_dir, strcspn(line + strlen(prefix), "\"") - 2, line + strlen(prefix)), NULL); -- cgit v1.2.3