Apply lsp edits in reverse order
This fixes the handling of multiple edits on the same line.
This commit is contained in:
parent
8bad05a4ba
commit
a32dffdd2b
1 changed files with 1 additions and 1 deletions
|
@ -1554,7 +1554,7 @@ impl Buffer {
|
||||||
}
|
}
|
||||||
|
|
||||||
self.start_transaction();
|
self.start_transaction();
|
||||||
for (range, new_text) in anchored_edits {
|
for (range, new_text) in anchored_edits.into_iter().rev() {
|
||||||
self.edit([range], new_text, cx);
|
self.edit([range], new_text, cx);
|
||||||
}
|
}
|
||||||
self.end_transaction(cx);
|
self.end_transaction(cx);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue