aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 314f12c..5b44621 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -404,6 +404,7 @@ pub fn event_loop() {
'repl: loop {
let mut se = session.lock().unwrap();
+ let _ = se.cohere();
let Some(key) = se.terminal_input.as_mut().unwrap().read() else {
break;
@@ -418,7 +419,6 @@ pub fn event_loop() {
drop(se);
// not sure if/how to report this error - would be strange to print something to console every time a keybind command returns nonzero exit code.
let _ = run::run_quiet(session.clone(), cmd);
- session.lock().unwrap().cohere().unwrap();
continue 'repl;
}
@@ -431,15 +431,12 @@ pub fn event_loop() {
drop(se);
// not sure if/how to report this error - would be strange to print something to console every time a keybind command returns nonzero exit code.
let _ = run::run_quiet(session.clone(), cmd);
- session.lock().unwrap().cohere().unwrap();
continue 'repl;
}
}
}
ansi::KbInput::InvalidEscape(_) => continue,
}
-
- se.cohere().unwrap();
}
session.lock().unwrap().raw_disable();