diff --git a/src/main.rs b/src/main.rs index a88f954..b7a85e9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -382,7 +382,10 @@ fn draw(ctx: &mut Context, state: &mut State) { let root_focused = ctx.contains_focus(); draw_menubar(ctx, state); - if state.wants_search.kind != StateSearchKind::Hidden { + if !matches!( + state.wants_search.kind, + StateSearchKind::Hidden | StateSearchKind::Disabled + ) { draw_search(ctx, state); } draw_editor(ctx, state);