@@ -698,9 +698,8 @@ impl Component for EditorView {
698 fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult {
698 fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult {
699 match event {
699 match event {
700 Event::Resize(width, height) => {
700 Event::Resize(width, height) => {
701− // HAXX: offset the render area height by 1 to account for prompt/commandline
701+ // Ignore this event, we handle resizing just before rendering to screen.
702− cx.editor
702+ // Handling it here but not re-rendering will cause flashing
703− .resize(Rect::new(0, 0, width, height.saturating_sub(1)));
704 EventResult::Consumed(None)
703 EventResult::Consumed(None)
706 Event::Key(key) => {
705 Event::Key(key) => {