multi_buffer: Reduce RefCell::borrow_mut calls to the bare minimum (#40522)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-10-17 18:17:34 +00:00
committed by GitHub
parent 1fbe1e3512
commit 27dcdb5841
9 changed files with 283 additions and 295 deletions
+2 -1
View File
@@ -6887,7 +6887,8 @@ impl Editor {
continue;
}
let range = Anchor::range_in_buffer(excerpt_id, buffer_id, start..end);
let range =
Anchor::range_in_buffer(excerpt_id, buffer_id, *start..*end);
if highlight.kind == lsp::DocumentHighlightKind::WRITE {
write_ranges.push(range);
} else {