diff --git a/crates/agent/src/edit_agent/streaming_fuzzy_matcher.rs b/crates/agent/src/edit_agent/streaming_fuzzy_matcher.rs index 008a39aa6efaddb2974ae6b4d6537e408f8faeb7..1ce2ca6f361a7e8186711d35d4dc640b8f13ce5a 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) -> Option> { - if line_hint.is_some() { - self.line_hint = line_hint; - } - // Add the chunk to our incomplete line buffer self.incomplete_line.push_str(chunk); self.line_hint = line_hint;