Move folder

This commit is contained in:
2026-04-13 10:32:46 +01:00
parent c683754d49
commit 037f884050
107 changed files with 292 additions and 155 deletions
Regular → Executable
+4 -3
View File
@@ -44,10 +44,10 @@ void Editor::edit_erase(Coord pos, int64_t len) {
}
uint32_t start_row = point.row;
uint32_t end_row = pos.row;
this->apply_hook_deletion(start_row + 1, end_row);
this->root = erase(this->root, start, byte_pos - start);
if (this->parser)
this->parser->edit(start_row, end_row - start_row, 0);
this->hooks.edit(start_row, end_row - start_row, 0);
if (do_lsp) {
auto lsp = this->lsp.load();
if (lsp->incremental_sync) {
@@ -113,10 +113,10 @@ void Editor::edit_erase(Coord pos, int64_t len) {
}
uint32_t start_row = pos.row;
uint32_t end_row = point.row;
this->apply_hook_deletion(start_row + 1, end_row);
this->root = erase(this->root, byte_pos, end - byte_pos);
if (this->parser)
this->parser->edit(start_row, end_row - start_row, 0);
this->hooks.edit(start_row, end_row - start_row, 0);
if (do_lsp) {
auto lsp = this->lsp.load();
if (lsp->incremental_sync) {
@@ -169,9 +169,9 @@ void Editor::edit_insert(Coord pos, char *data, uint32_t len) {
for (uint32_t i = 0; i < len; i++)
if (data[i] == '\n')
rows++;
this->apply_hook_insertion(pos.row, rows);
if (this->parser)
this->parser->edit(pos.row, 0, rows);
this->hooks.edit(pos.row, 0, rows);
auto lsp = this->lsp.load();
if (lsp) {
if (lsp->incremental_sync) {
@@ -234,6 +234,7 @@ void Editor::edit_replace(Coord start, Coord end, const char *text,
rows++;
if (this->parser)
this->parser->edit(start.row, end.row - start.row, rows);
this->hooks.edit(start.row, end.row - start.row, rows);
auto lsp = this->lsp.load();
if (lsp) {
if (lsp->incremental_sync) {