From f826fb78dcac89b4ba23e399ac5d141459c14ae9 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 31 Mar 2026 16:03:34 +0300 Subject: fix: reserve pane width for visible scrollbars --- src/layout.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/layout.rs') diff --git a/src/layout.rs b/src/layout.rs index c72456b9..56254f04 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -32,6 +32,8 @@ pub struct PaneInfo { pub rect: Rect, /// Inner rect (content area, excluding borders). Used for selection. pub inner_rect: Rect, + /// Reserved scrollbar lane, when scrollback is visible. + pub scrollbar_rect: Option, pub is_focused: bool, } @@ -315,6 +317,7 @@ fn collect_panes(node: &Node, area: Rect, focus: PaneId, result: &mut Vec