From 167c5aa447e81f292c8d1e43dd8080700cdcd2c3 Mon Sep 17 00:00:00 2001 From: Leonard Hecker Date: Fri, 4 Apr 2025 23:54:51 +0200 Subject: [PATCH] Fix soft deadlock when ICU is missing --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);