aboutsummaryrefslogtreecommitdiff
path: root/src/layout.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-06 20:59:57 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-06 20:59:57 +0300
commitb83737bddb369777412a2e05c3bdd3518f49d122 (patch)
tree6f40731d79ef272d029c216536da2ba51ffe1504 /src/layout.rs
parent94b90043f98499a1ed3594dd9ea42b2aef62b93a (diff)
fix: keep pane scrollbar gutter stable
Diffstat (limited to 'src/layout.rs')
-rw-r--r--src/layout.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout.rs b/src/layout.rs
index 56254f04..be407589 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -32,7 +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.
+ /// Visible scrollbar lane, when scrollback is present. `inner_rect` may still
+ /// exclude a stable hidden gutter when this is `None`.
pub scrollbar_rect: Option<Rect>,
pub is_focused: bool,
}