diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-07 10:24:29 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-07 10:24:29 +0000 |
| commit | 7668a19490543a335ce4800eb0dfc55012b2cd79 (patch) | |
| tree | db1fc64298d677822a4e21dd6621257d17ea09ca /src | |
| parent | Merge branch 'main' into wasm-launchable (diff) | |
| download | sl0ppij-7668a19490543a335ce4800eb0dfc55012b2cd79.tar.gz sl0ppij-7668a19490543a335ce4800eb0dfc55012b2cd79.tar.xz sl0ppij-7668a19490543a335ce4800eb0dfc55012b2cd79.zip | |
Fix a positioning bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/panes/terminal_pane.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/panes/terminal_pane.rs b/src/panes/terminal_pane.rs index 6bd39a3f..3d7484aa 100644 --- a/src/panes/terminal_pane.rs +++ b/src/panes/terminal_pane.rs @@ -16,8 +16,7 @@ pub enum PaneId { Plugin(u32), // FIXME: Drop the trait object, make this a wrapper for the struct? BuiltIn(u32), } - -#[derive(Clone, Copy, Debug)] +#[derive(Clone, Copy, Debug, Default)] pub struct PositionAndSize { pub x: usize, pub y: usize, @@ -30,8 +29,7 @@ impl PositionAndSize { PositionAndSize { columns: winsize.ws_col as usize, rows: winsize.ws_row as usize, - x: winsize.ws_xpixel as usize, - y: winsize.ws_ypixel as usize, + ..Default::default() } } } |
