From 9eb3c2dd1375119c7f6bb8ecac07b715e72fe692 Mon Sep 17 00:00:00 2001 From: Milo Mighdoll <14153763+milomg@users.noreply.github.com> Date: Sun, 8 Dec 2024 08:39:11 -0500 Subject: [PATCH] Redraw on resize (#857) --- src/engine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.rs b/src/engine.rs index 7c78a923..dd9b02f8 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -881,7 +881,7 @@ impl Reedline { ReedlineEvent::Mouse => Ok(EventStatus::Handled), ReedlineEvent::Resize(width, height) => { self.painter.handle_resize(width, height); - Ok(EventStatus::Inapplicable) + Ok(EventStatus::Handled) } ReedlineEvent::Repaint => { // A handled Event causes a repaint @@ -1199,7 +1199,7 @@ impl Reedline { ReedlineEvent::OpenEditor => self.open_editor().map(|_| EventStatus::Handled), ReedlineEvent::Resize(width, height) => { self.painter.handle_resize(width, height); - Ok(EventStatus::Inapplicable) + Ok(EventStatus::Handled) } ReedlineEvent::Repaint => { // A handled Event causes a repaint