Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Fix highlight and selection overlap causing flicker while selecting (#40168)

Smit Barmased4cc4f8ca76b
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 01dd446bed4..3767c863b15 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -7001,6 +7001,7 @@ impl Editor {
) else {
return Vec::default();
};
+ let query_range = query_range.to_anchors(&multi_buffer_snapshot);
for (buffer_snapshot, search_range, excerpt_id) in buffer_ranges {
match_ranges.extend(
regex