Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Yara 🏳️‍⚧️ authored and GitHub committed 2026-04-29 10:27:47 +00:00
1 parent dc327f4f95
commit 0438bf5268
35 files changed
+72 -90

No files matched your search

+1 -4
View File
@@ -3575,10 +3575,7 @@ impl MultiBufferSnapshot {
continue 'anchors;
};
cursor.seek_forward(path, Bias::Left);
'excerpts: loop {
let Some(excerpt) = cursor.item() else {
break;
};
'excerpts: while let Some(excerpt) = cursor.item() {
if excerpt.path_key != *path {
break;
}