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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user