From 258f784098c81759a1ae992d35e908ebe72cc167 Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 26 Jul 2023 21:17:37 +0200 Subject: [PATCH] Fix(handlers::main): Don't close the cli after an entered command --- src/tui_app/app/events/event_types/event/handlers/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tui_app/app/events/event_types/event/handlers/main.rs b/src/tui_app/app/events/event_types/event/handlers/main.rs index ebb600f..4462257 100644 --- a/src/tui_app/app/events/event_types/event/handlers/main.rs +++ b/src/tui_app/app/events/event_types/event/handlers/main.rs @@ -10,7 +10,10 @@ use crate::{ ui::central, }; -pub async fn handle_normal(app: &mut App<'_>, input_event: &CrosstermEvent) -> Result { +pub async fn handle( + app: &mut App<'_>, + input_event: &CrosstermEvent, +) -> Result { match input_event { CrosstermEvent::Key(KeyEvent { code: KeyCode::Esc, .. @@ -155,9 +158,6 @@ pub async fn handle_normal(app: &mut App<'_>, input_event: &CrosstermEvent) -> R .send(Event::LuaCommand(ci_event)) .await .context("Failed to send lua command to internal event stream")?; - app.tx - .send(Event::CommandEvent(Command::CommandLineHide, None)) - .await?; } _ => { app.ui