diff --git a/crates/git_graph/src/git_graph.rs b/crates/git_graph/src/git_graph.rs index b971566075181350453b28bf9909371e51436021..d169ba686098dddd4881915ece11c8a97148affa 100644 --- a/crates/git_graph/src/git_graph.rs +++ b/crates/git_graph/src/git_graph.rs @@ -1324,6 +1324,12 @@ impl GitGraph { editor.set_text_style_refinement(Default::default()); }); + if query.as_str().is_empty() { + self.search_state.state = QueryState::Empty; + cx.notify(); + return; + } + let (request_tx, request_rx) = smol::channel::unbounded::(); repo.update(cx, |repo, cx| {