From 6c0bb273d5d5405a00985621b17e36f8b4d64609 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Wed, 2 Sep 2026 14:24:33 +0300 Subject: feat: support independent multi-client tab views (#3526) --- src/ui.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/ui.rs') diff --git a/src/ui.rs b/src/ui.rs index 7a488374..141e09d3 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -39,8 +39,8 @@ pub(crate) use self::sidebar::{ use self::status::copy_feedback_rect; pub(crate) use self::status::{render_config_diagnostic_buffer, render_copy_feedback_buffer}; pub(crate) use self::tab_surface::{ - compute_tab_surface, render_tab_surface, resize_tab_surface, tab_surface_cursor, - tab_surface_hyperlinks, TabSurfaceLayout, TabSurfaceView, + compute_tab_surface, compute_tab_surface_for, render_tab_surface, resize_tab_surface, + tab_surface_cursor, tab_surface_hyperlinks, TabSurfaceLayout, TabSurfaceTarget, TabSurfaceView, }; pub(crate) use self::text::truncate_end; pub(crate) use self::widgets::{centered_popup_rect, modal_stack_areas}; @@ -113,11 +113,18 @@ fn resize_background_tab_panes( cell_size: crate::kitty_graphics::HostCellSize, ) { for (workspace_index, workspace) in app.workspaces.iter().enumerate() { - for (tab_index, tab) in workspace.tabs.iter().enumerate() { + for tab_index in 0..workspace.tabs.len() { if app.active == Some(workspace_index) && tab_index == workspace.active_tab_index() { continue; } - resize_tab_surface(app, terminal_runtimes, tab, area, cell_size); + resize_tab_surface( + app, + terminal_runtimes, + workspace_index, + tab_index, + area, + cell_size, + ); } } } -- cgit v1.2.3