diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-06-03 12:38:23 +0100 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-06-03 12:38:23 +0100 |
| commit | 5164bd99b7750122b36fd1fa54a90047e483067c (patch) | |
| tree | 52beb8ea26c8ec6a6d46c6a9a95c9661878f6ff0 /zellij-utils/src/pane_size.rs | |
| parent | Merge branch 'main' into resize-overhaul (diff) | |
| download | sl0ppij-5164bd99b7750122b36fd1fa54a90047e483067c.tar.gz sl0ppij-5164bd99b7750122b36fd1fa54a90047e483067c.tar.xz sl0ppij-5164bd99b7750122b36fd1fa54a90047e483067c.zip | |
Fixed a build warning and renamed a struct field
Diffstat (limited to 'zellij-utils/src/pane_size.rs')
| -rw-r--r-- | zellij-utils/src/pane_size.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zellij-utils/src/pane_size.rs b/zellij-utils/src/pane_size.rs index b242b8ba..8a939381 100644 --- a/zellij-utils/src/pane_size.rs +++ b/zellij-utils/src/pane_size.rs @@ -8,7 +8,7 @@ pub struct PositionAndSize { pub x: usize, pub y: usize, pub rows: usize, - pub columns: usize, + pub cols: usize, // FIXME: Honestly, these shouldn't exist and rows / columns should be enums like: // Dimension::Flex(usize) / Dimension::Fixed(usize), but 400+ compiler errors is more than // I'm in the mood for right now... @@ -19,7 +19,7 @@ pub struct PositionAndSize { impl From<Winsize> for PositionAndSize { fn from(winsize: Winsize) -> PositionAndSize { PositionAndSize { - columns: winsize.ws_col as usize, + cols: winsize.ws_col as usize, rows: winsize.ws_row as usize, ..Default::default() } |
