diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-04 03:14:44 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-04 03:15:11 +0300 |
| commit | edd08e895fc65e07e500a1fe80e88202deae6b8d (patch) | |
| tree | 4d4c9df1e94b60a97c8a6be2ffb4f930896898a8 /src/app/input/mod.rs | |
| parent | 797981c7e907bc6e3050373ba150fb7a8bc651fb (diff) | |
refactor: route pane layout tui actions through runtime wrappers
Diffstat (limited to 'src/app/input/mod.rs')
| -rw-r--r-- | src/app/input/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs index 164c4dd4..00bbf3cf 100644 --- a/src/app/input/mod.rs +++ b/src/app/input/mod.rs @@ -4,6 +4,7 @@ use crossterm::event::{KeyCode, KeyEvent, KeyModifiers, MouseButton, MouseEvent, use crate::app::PaneClickState; use crate::input::TerminalKey; +#[cfg(test)] use ratatui::layout::Direction; #[derive(Debug, Clone, Copy, PartialEq, Eq)] @@ -520,6 +521,7 @@ pub(crate) fn modal_paste_target_active(state: &AppState) -> bool { // Note: split_pane needs runtime (event_tx for PTY spawn), so it lives on App impl AppState { + #[cfg(test)] pub(crate) fn split_pane( &mut self, terminal_runtimes: &mut crate::terminal::TerminalRuntimeRegistry, |
