Fix(handlers::main): Don't close the cli after an entered command
This commit is contained in:
parent
80a8c9ccf5
commit
15c705154e
|
@ -10,7 +10,10 @@ use crate::{
|
||||||
ui::central,
|
ui::central,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub async fn handle(app: &mut App<'_>, input_event: &CrosstermEvent) -> Result<EventStatus> {
|
pub async fn handle(
|
||||||
|
app: &mut App<'_>,
|
||||||
|
input_event: &CrosstermEvent,
|
||||||
|
) -> Result<EventStatus> {
|
||||||
match input_event {
|
match input_event {
|
||||||
CrosstermEvent::Key(KeyEvent {
|
CrosstermEvent::Key(KeyEvent {
|
||||||
code: KeyCode::Esc, ..
|
code: KeyCode::Esc, ..
|
||||||
|
@ -170,9 +173,6 @@ pub async fn handle(app: &mut App<'_>, input_event: &CrosstermEvent) -> Result<E
|
||||||
.send(Event::LuaCommand(ci_event))
|
.send(Event::LuaCommand(ci_event))
|
||||||
.await
|
.await
|
||||||
.context("Failed to send lua command to internal event stream")?;
|
.context("Failed to send lua command to internal event stream")?;
|
||||||
app.tx
|
|
||||||
.send(Event::CommandEvent(Command::CommandLineHide, None))
|
|
||||||
.await?;
|
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
app.ui
|
app.ui
|
||||||
|
|
Reference in New Issue