diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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(); |
