diff --git a/examples/nested_shell.rs b/examples/nested_shell.rs index a865dd4..1b9192d 100644 --- a/examples/nested_shell.rs +++ b/examples/nested_shell.rs @@ -178,7 +178,7 @@ fn run( Event::FocusLost => {} Event::Mouse(_) => {} Event::Paste(_) => todo!(), - Event::Resize(rows, cols) => { + Event::Resize(cols, rows) => { parser.write().unwrap().set_size(rows, cols); } } diff --git a/examples/nested_shell_async.rs b/examples/nested_shell_async.rs index 43af69c..d3ee60f 100644 --- a/examples/nested_shell_async.rs +++ b/examples/nested_shell_async.rs @@ -181,7 +181,7 @@ async fn run( Event::FocusLost => {} Event::Mouse(_) => {} Event::Paste(_) => todo!(), - Event::Resize(rows, cols) => { + Event::Resize(cols, rows) => { parser.write().unwrap().set_size(rows, cols); } } diff --git a/examples/smux.rs b/examples/smux.rs index 310fcee..8dbad26 100644 --- a/examples/smux.rs +++ b/examples/smux.rs @@ -137,7 +137,7 @@ async fn main() -> io::Result<()> { } } }, - Event::Resize(rows, cols) => { + Event::Resize(cols, rows) => { tracing::info!("Resized to: rows: {} cols: {}", rows, cols); for pane in panes.iter_mut() { pane.parser.write().unwrap().set_size(rows, cols);