editor: Fix highlight and selection overlap causing flicker while selecting (#40168)
    
      
      
      
        
        Smit Barmase
      
      created 
    
  
  
  
  Regressed in https://github.com/zed-industries/zed/pull/39857, only on
Nightly.
Release Notes:
- N/A
  
  
  
  Change summary
  crates/editor/src/editor.rs | 1 +
1 file changed, 1 insertion(+)
  Detailed changes
  
  
    
    @@ -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