diff options
Diffstat (limited to 'zellij-server/src/panes/terminal_pane.rs')
-rw-r--r-- | zellij-server/src/panes/terminal_pane.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/zellij-server/src/panes/terminal_pane.rs b/zellij-server/src/panes/terminal_pane.rs index 4d5ed840c..d206245ad 100644 --- a/zellij-server/src/panes/terminal_pane.rs +++ b/zellij-server/src/panes/terminal_pane.rs @@ -18,8 +18,8 @@ use zellij_utils::pane_size::Offset; use zellij_utils::{ data::{InputMode, Palette, PaletteColor, Style}, errors::prelude::*, + pane_size::PaneGeom, pane_size::SizeInPixels, - pane_size::{Dimension, PaneGeom}, position::Position, shared::make_terminal_title, vte, @@ -446,25 +446,25 @@ impl Pane for TerminalPane { } fn reduce_height(&mut self, percent: f64) { if let Some(p) = self.geom.rows.as_percent() { - self.geom.rows = Dimension::percent(p - percent); + self.geom.rows.set_percent(p - percent); self.set_should_render(true); } } fn increase_height(&mut self, percent: f64) { if let Some(p) = self.geom.rows.as_percent() { - self.geom.rows = Dimension::percent(p + percent); + self.geom.rows.set_percent(p + percent); self.set_should_render(true); } } fn reduce_width(&mut self, percent: f64) { if let Some(p) = self.geom.cols.as_percent() { - self.geom.cols = Dimension::percent(p - percent); + self.geom.cols.set_percent(p - percent); self.set_should_render(true); } } fn increase_width(&mut self, percent: f64) { if let Some(p) = self.geom.cols.as_percent() { - self.geom.cols = Dimension::percent(p + percent); + self.geom.cols.set_percent(p + percent); self.set_should_render(true); } } |