diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-19 22:23:49 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-19 22:24:20 +0300 |
| commit | 052f20214b1be904924df8d50d01e31198098922 (patch) | |
| tree | 209ec134a8dc7e90b0f141fa046b31cda835c85c /src/protocol | |
| parent | 46a2b259a71828e7fcdeab1f67ef675304e2ca14 (diff) | |
fix: preserve windows terminal multiline paste
refs #670
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/wire.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol/wire.rs b/src/protocol/wire.rs index 79c051b7..1bbfd9a8 100644 --- a/src/protocol/wire.rs +++ b/src/protocol/wire.rs @@ -130,7 +130,7 @@ pub enum ClientInputEvent { } impl ClientKeyKind { - #[cfg(windows)] + #[cfg(any(windows, test))] pub(crate) fn from_crossterm(kind: crossterm::event::KeyEventKind) -> Self { match kind { crossterm::event::KeyEventKind::Press => Self::Press, @@ -149,7 +149,7 @@ impl ClientKeyKind { } impl ClientKeyCode { - #[cfg(windows)] + #[cfg(any(windows, test))] pub(crate) fn from_crossterm(code: crossterm::event::KeyCode) -> Option<Self> { use crossterm::event::KeyCode; Some(match code { @@ -201,7 +201,7 @@ impl ClientKeyCode { } impl ClientMouseButton { - #[cfg(windows)] + #[cfg(any(windows, test))] pub(crate) fn from_crossterm(button: crossterm::event::MouseButton) -> Self { match button { crossterm::event::MouseButton::Left => Self::Left, @@ -220,7 +220,7 @@ impl ClientMouseButton { } impl ClientMouseKind { - #[cfg(windows)] + #[cfg(any(windows, test))] pub(crate) fn from_crossterm(kind: crossterm::event::MouseEventKind) -> Option<Self> { use crossterm::event::MouseEventKind; Some(match kind { |
