From d4cc4f8ca76ba70d886e3a10e10f550a28534354 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Tue, 14 Oct 2025 16:05:21 +0530 Subject: [PATCH] editor: Fix highlight and selection overlap causing flicker while selecting (#40168) Regressed in https://github.com/zed-industries/zed/pull/39857, only on Nightly. Release Notes: - N/A --- crates/editor/src/editor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 01dd446bed..3767c863b1 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