aboutsummaryrefslogtreecommitdiff
path: root/src/ghostty
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-04-07 03:23:13 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-04-07 03:23:13 +0300
commit2ff1718213918cedf58b609d7256f5a2526e93e4 (patch)
tree44ac731b2eec310de59f40ac733e4611372d397b /src/ghostty
parentd8283881dba06b457d6634bba1fed56e4344c351 (diff)
fix: persist ghostty key encoders per pane
Diffstat (limited to 'src/ghostty')
-rw-r--r--src/ghostty/mod.rs3
1 files changed, 3 insertions, 0 deletions
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) }