Basic completion support

This commit is contained in:
2026-01-06 11:39:17 +00:00
parent a905e333fc
commit e9da17eb34
15 changed files with 423 additions and 219 deletions

View File

@@ -42,8 +42,11 @@ void word_boundaries_exclusive(Editor *editor, Coord coord, uint32_t *prev_col,
return;
uint32_t line_len;
char *line = next_line(it, &line_len);
if (!line)
if (!line) {
free(it->buffer);
free(it);
return;
}
if (line_len && line[line_len - 1] == '\n')
line_len--;
uint32_t col = coord.col;