diff options
| author | Aram Drevekenin <aram@poor.dev> | 2021-08-12 14:50:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 14:50:00 +0200 |
| commit | a37d3e5889476bbac209d20f89886daa3e9d3992 (patch) | |
| tree | c02fbf779dda57b615a852fd6a43818b20722b19 /default-plugins/tab-bar | |
| parent | docs(governance): arbiter no-confidence vote (diff) | |
| download | sl0ppij-a37d3e5889476bbac209d20f89886daa3e9d3992.tar.gz sl0ppij-a37d3e5889476bbac209d20f89886daa3e9d3992.tar.xz sl0ppij-a37d3e5889476bbac209d20f89886daa3e9d3992.zip | |
feat(ui): pane frames (new pane UI) (#643)
* work
* resize working
* move focus working
* close pane working
* selection and fullscreen working
* pane title line
* titles and conditional scroll title
* whole tab resize working
* plugin frames working
* plugin splitting working
* truncate pane frame titles
* cleanup
* panes always draw their own borders - also fix gap
* toggle pane frames
* move toggle to screen and fix some bugs
* fix plugin frame toggle
* fix terminal window resize
* fix scrolling and fullscreen bugs
* unit tests passing
* e2e tests passing and new test for new frames added
* refactor: TerminalPane and PluginPane
* refactor: Tab
* refactor: moar Tab
* refactor: Boundaries
* only render and calculate boundaries when there are no pane frames
* refactor: Layout
* fix(grid): properly resize when coming back from alternative viewport
* style: remove commented code
* style: fmt
* style: fmt
* style: fmt + clippy
* docs(changelog): update change
Diffstat (limited to 'default-plugins/tab-bar')
| -rw-r--r-- | default-plugins/tab-bar/src/line.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/default-plugins/tab-bar/src/line.rs b/default-plugins/tab-bar/src/line.rs index 3ebeaac3..fc18abfd 100644 --- a/default-plugins/tab-bar/src/line.rs +++ b/default-plugins/tab-bar/src/line.rs @@ -191,7 +191,7 @@ pub fn tab_line( &mut tabs_before_active, &mut tabs_after_active, &mut tabs_to_render, - cols - prefix.len, + cols.saturating_sub(prefix.len), ); let mut tab_line: Vec<LinePart> = vec![]; @@ -200,7 +200,7 @@ pub fn tab_line( &mut tabs_before_active, &mut tabs_to_render, &mut tab_line, - cols - prefix.len, + cols.saturating_sub(prefix.len), palette, tab_separator(capabilities), ); @@ -210,7 +210,7 @@ pub fn tab_line( add_next_tabs_msg( &mut tabs_after_active, &mut tab_line, - cols - prefix.len, + cols.saturating_sub(prefix.len), palette, tab_separator(capabilities), ); |
