diff options
| author | Aram Drevekenin <aram@poor.dev> | 2021-04-21 19:24:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-21 19:24:51 +0200 |
| commit | e55dfc53e0ee67b5868122eeb95447a5dfd4827a (patch) | |
| tree | 541d3fc739663d8efd86950695bf092570455e38 /src/client | |
| parent | docs(changelog): update change (diff) | |
| download | sl0ppij-e55dfc53e0ee67b5868122eeb95447a5dfd4827a.tar.gz sl0ppij-e55dfc53e0ee67b5868122eeb95447a5dfd4827a.tar.xz sl0ppij-e55dfc53e0ee67b5868122eeb95447a5dfd4827a.zip | |
fix(ui): do not open new pane on the status bar (#314)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/tab.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs index 8750589f..f938348e 100644 --- a/src/client/tab.rs +++ b/src/client/tab.rs @@ -21,7 +21,10 @@ use std::{io::Write, sync::mpsc::channel}; use zellij_tile::data::{Event, ModeInfo}; const CURSOR_HEIGHT_WIDTH_RATIO: usize = 4; // this is not accurate and kind of a magic number, TODO: look into this -const MIN_TERMINAL_HEIGHT: usize = 2; + +// MIN_TERMINAL_HEIGHT here must be larger than the height of any of the status bars +// this is a dirty hack until we implement fixed panes +const MIN_TERMINAL_HEIGHT: usize = 3; const MIN_TERMINAL_WIDTH: usize = 4; type BorderAndPaneIds = (usize, Vec<PaneId>); |
