From 4a77aaf14179243bb3585d51eee586b5142805fb Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 4 Aug 2026 10:17:52 +0300 Subject: [PATCH] layout/scrolling: Add active_column() --- src/layout/scrolling.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 0ca41ab7..02dd2a7e 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -1163,6 +1163,14 @@ impl ScrollingSpace { tile } + pub fn active_column(&self) -> Option<&Column> { + if self.columns.is_empty() { + return None; + } + + Some(&self.columns[self.active_column_idx]) + } + pub fn remove_active_column(&mut self) -> Option> { if self.columns.is_empty() { return None;