Optimize line iterator

This commit is contained in:
2025-12-19 20:46:52 +00:00
parent 8002012705
commit 7307387f64
8 changed files with 136 additions and 130 deletions

View File

@@ -23,10 +23,10 @@ uint32_t get_indent(Editor *editor, Coord cursor) {
if (line_len == 0)
continue;
uint32_t indent = leading_indent(line, line_len);
free(line);
free(it);
return indent;
}
free(it->buffer);
free(it);
return 0;
}