diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 01:41:17 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 01:41:17 +0300 |
| commit | 3ecacfddae86d603bfd0d1a0c01602b1d34b1df3 (patch) | |
| tree | 277941c065295af2bd161c6be6fd7a2555c1f060 /src/kitty_graphics.rs | |
| parent | a36da363f14639085bec91d7a378d6c2eeaa6c58 (diff) | |
feat: add direct terminal attach stream
Diffstat (limited to 'src/kitty_graphics.rs')
| -rw-r--r-- | src/kitty_graphics.rs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/kitty_graphics.rs b/src/kitty_graphics.rs index de1ac58a..47aba364 100644 --- a/src/kitty_graphics.rs +++ b/src/kitty_graphics.rs @@ -362,27 +362,25 @@ fn collect_visible_placements( return Vec::new(); } }; - let tab = match app + if app .workspaces .get(ws_idx) .and_then(crate::workspace::Workspace::active_tab) + .is_none() { - Some(t) => t, - None => { - tracing::debug!(ws_idx, "collect_visible_placements: no active tab"); - return Vec::new(); - } - }; + tracing::debug!(ws_idx, "collect_visible_placements: no active tab"); + return Vec::new(); + } tracing::debug!( ws_idx, - tab_runtimes_len = tab.runtimes.len(), + terminal_runtimes_len = app.terminal_runtimes.len(), pane_infos_len = app.view.pane_infos.len(), "collect_visible_placements: starting iteration" ); let mut placements = Vec::new(); for info in &app.view.pane_infos { - let runtime = match tab.runtimes.get(&info.id) { + let runtime = match app.runtime_for_pane_in_workspace(ws_idx, info.id) { Some(rt) => rt, None => { tracing::debug!(pane_id = ?info.id, "collect_visible_placements: runtime not found"); |
