aboutsummaryrefslogtreecommitdiff
path: root/src/raw_input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/raw_input.rs')
-rw-r--r--src/raw_input.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/raw_input.rs b/src/raw_input.rs
index dd61ee5a..77aaecdb 100644
--- a/src/raw_input.rs
+++ b/src/raw_input.rs
@@ -76,6 +76,10 @@ fn flush_incomplete_buffer(buffer: &mut Vec<u8>, tx: &mpsc::Sender<RawInputEvent
}
if buffer.as_slice() == [ESC] {
+ tracing::warn!(
+ bytes = ?buffer,
+ "flushing lone escape after input timeout; if this follows an alt chord or focus switch it may reach the pane as plain esc"
+ );
let _ = tx.blocking_send(RawInputEvent::Key(TerminalKey::new(
crossterm::event::KeyCode::Esc,
KeyModifiers::empty(),