diff options
| author | mo8it <mo8it@proton.me> | 2024-09-05 17:45:27 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-09-05 17:45:27 +0200 |
| commit | 9faa5d3aa48f7a94ed87e61ad6ea659579f1311a (patch) | |
| tree | c841dada045258cfec968e664f848c879d1713b2 /src/watch/terminal_event.rs | |
| parent | bcc2a136c8b086a660b8e656c2cd9398f47435f4 (diff) | |
Avoid asking for terminal size on each rendering
Diffstat (limited to 'src/watch/terminal_event.rs')
| -rw-r--r-- | src/watch/terminal_event.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch/terminal_event.rs b/src/watch/terminal_event.rs index 0762151..ca3a846 100644 --- a/src/watch/terminal_event.rs +++ b/src/watch/terminal_event.rs @@ -43,8 +43,8 @@ pub fn terminal_event_handler(tx: Sender<WatchEvent>, manual_run: bool) { return; } } - Event::Resize(_, _) => { - if tx.send(WatchEvent::TerminalResize).is_err() { + Event::Resize(width, _) => { + if tx.send(WatchEvent::TerminalResize { width }).is_err() { return; } } |
