diff options
Diffstat (limited to 'src/ui.rs')
| -rw-r--r-- | src/ui.rs | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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, + ); } } } |
