mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-31 21:36:26 +00:00
Don't report a buffer when it doesn't contain any matches
This commit is contained in:
parent
2611b5449f
commit
29e035a70d
1 changed files with 5 additions and 2 deletions
|
@ -2205,8 +2205,11 @@ impl Project {
|
||||||
snapshot.anchor_before(range.start)
|
snapshot.anchor_before(range.start)
|
||||||
..snapshot.anchor_after(range.end)
|
..snapshot.anchor_after(range.end)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect::<Vec<_>>();
|
||||||
worker_matched_buffers.insert(buffer.clone(), buffer_matches);
|
if !buffer_matches.is_empty() {
|
||||||
|
worker_matched_buffers
|
||||||
|
.insert(buffer.clone(), buffer_matches);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue