diff --git a/bin/commands/inbox/list.rs b/bin/commands/inbox/list.rs index 3a76638a..bccf05af 100644 --- a/bin/commands/inbox/list.rs +++ b/bin/commands/inbox/list.rs @@ -319,10 +319,8 @@ impl Show for App { }, ); - if !show_search { - if ui.has_input(|key| key == Key::Char('?')) { - ui.send_message(Message::Changed(Change::Page { page: Page::Help })); - } + if !show_search && ui.has_input(|key| key == Key::Char('?')) { + ui.send_message(Message::Changed(Change::Page { page: Page::Help })); } } diff --git a/bin/commands/patch/list.rs b/bin/commands/patch/list.rs index d7efd119..7e73c944 100644 --- a/bin/commands/patch/list.rs +++ b/bin/commands/patch/list.rs @@ -274,10 +274,8 @@ impl Show for App { }, ); - if !show_search { - if ui.has_input(|key| key == Key::Char('?')) { - ui.send_message(Message::Changed(Change::Page { page: Page::Help })); - } + if !show_search && ui.has_input(|key| key == Key::Char('?')) { + ui.send_message(Message::Changed(Change::Page { page: Page::Help })); } }