diff options
| author | Jonas Maier <> | 2026-05-24 20:40:27 +0200 |
|---|---|---|
| committer | Jonas Maier <> | 2026-05-24 20:40:27 +0200 |
| commit | 7679654c5710d08f626f164731b9b929b93957d8 (patch) | |
| tree | 5dff925ecf44517ce4b9622ab3e547dda7900758 /src/lib.rs | |
| parent | 76ce59936d6d1c03ea291e6631db26339d310c19 (diff) | |
| download | pish-7679654c5710d08f626f164731b9b929b93957d8.tar.gz | |
allow highlighting to be disabled, once again
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(); |
