Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Remove duplicate `line_hint` assignment in `StreamingFuzzyMatcher::push` (#48317)
Albab Hasan404cb3eeed6b
diff --git a/crates/agent/src/edit_agent/streaming_fuzzy_matcher.rs b/crates/agent/src/edit_agent/streaming_fuzzy_matcher.rsindex 008a39aa6ef..1ce2ca6f361 100644--- a/crates/agent/src/edit_agent/streaming_fuzzy_matcher.rs+++ b/crates/agent/src/edit_agent/streaming_fuzzy_matcher.rs@@ -44,10 +44,6 @@ impl StreamingFuzzyMatcher {/// Returns `Some(range)` if a match has been found with the accumulated/// query so far, or `None` if no suitable match exists yet.pub fn push(&mut self, chunk: &str, line_hint: Option<u32>) -> Option<Range<usize>> {- if line_hint.is_some() {- self.line_hint = line_hint;- }-// Add the chunk to our incomplete line bufferself.incomplete_line.push_str(chunk);self.line_hint = line_hint;