1
0
Fork 0

Fix(handlers::main): Don't close the cli after an entered command

This commit is contained in:
Benedikt Peetz 2023-07-26 21:17:37 +02:00
parent a80245c523
commit 258f784098
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
1 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,10 @@ use crate::{
ui::central,
};
pub async fn handle_normal(app: &mut App<'_>, input_event: &CrosstermEvent) -> Result<EventStatus> {
pub async fn handle(
app: &mut App<'_>,
input_event: &CrosstermEvent,
) -> Result<EventStatus> {
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