Don't report a buffer when it doesn't contain any matches
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user