From 2ff1718213918cedf58b609d7256f5a2526e93e4 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 7 Apr 2026 03:23:13 +0300 Subject: fix: persist ghostty key encoders per pane --- src/ghostty/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ghostty') diff --git a/src/ghostty/mod.rs b/src/ghostty/mod.rs index 55bafebc..e236b36f 100644 --- a/src/ghostty/mod.rs +++ b/src/ghostty/mod.rs @@ -797,6 +797,9 @@ impl KeyEncoder { } } +// SAFETY: the opaque encoder handle is only used behind external synchronization in pane runtime. +unsafe impl Send for KeyEncoder {} + impl Drop for KeyEncoder { fn drop(&mut self) { unsafe { ffi::ghostty_key_encoder_free(self.raw) } -- cgit v1.2.3