aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2021-01-28 18:29:44 +0100
committerGitHub <noreply@github.com>2021-01-28 18:29:44 +0100
commitdd56deb2d285e12f8d2399ac1b757b5b067dffe5 (patch)
tree2933952cb27b6d7b3e1c11cd0943bb3e595912c7 /src/main.rs
parentMin max height and width (#155) (diff)
downloadsl0ppij-dd56deb2d285e12f8d2399ac1b757b5b067dffe5.tar.gz
sl0ppij-dd56deb2d285e12f8d2399ac1b757b5b067dffe5.tar.xz
sl0ppij-dd56deb2d285e12f8d2399ac1b757b5b067dffe5.zip
feat(statusbar): max status bar height (#156)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index cee7398d..140c95e8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -406,6 +406,12 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) {
// FIXME: Is this needed?
screen.render();
}
+ ScreenInstruction::SetMaxHeight(id, max_height) => {
+ screen
+ .get_active_tab_mut()
+ .unwrap()
+ .set_pane_max_height(id, max_height);
+ }
ScreenInstruction::ClosePane(id) => {
screen.get_active_tab_mut().unwrap().close_pane(id);
screen.render();