From 7679654c5710d08f626f164731b9b929b93957d8 Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Sun, 24 May 2026 20:40:27 +0200 Subject: allow highlighting to be disabled, once again --- src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lib.rs') 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(); -- cgit v1.2.3