Skip to content

Commit

Permalink
Redraw on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
milomg authored Nov 25, 2024
1 parent 3c46dc2 commit 4de74bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4de74bc

Please sign in to comment.