From 4de74bc5d6c59628512fe104797b8d40bb45096e Mon Sep 17 00:00:00 2001 From: Milo Mighdoll <14153763+milomg@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:16:24 -0500 Subject: [PATCH] Redraw on resize --- 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