Fix parser bug on newlines

This commit is contained in:
2026-02-05 14:23:52 +00:00
parent dd474cc38d
commit d79ea4e75a
3 changed files with 2 additions and 9 deletions
-2
View File
@@ -232,8 +232,6 @@ void Editor::edit_replace(Coord start, Coord end, const char *text,
for (uint32_t i = 0; i < len; i++)
if (text[i] == '\n')
rows++;
if (rows > 0)
rows--;
if (this->parser)
this->parser->edit(start.row, end.row - start.row, rows);
auto lsp = this->lsp.load();