Skip to content

Commit 4f0c6f4

Browse files
committed
Fix incorrect limit calculation
1 parent b16f5e2 commit 4f0c6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/project/src/project_search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl Search {
164164
} else if let Some(entry_id) = buffer.entry_id(cx) {
165165
open_buffers.insert(entry_id);
166166
} else {
167-
self.limit -= self.limit.saturating_sub(1);
167+
self.limit = self.limit.saturating_sub(1);
168168
unnamed_buffers.push(handle)
169169
};
170170
}

0 commit comments

Comments
 (0)