From 7469bd36bed721da5a52652132b117bbc6fa708e Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Tue, 9 Jan 2018 08:01:22 -0800 Subject: [PATCH] Call resize_term on KeySize --- src/backend/curses/pan.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/curses/pan.rs b/src/backend/curses/pan.rs index c9c7644..0c56749 100644 --- a/src/backend/curses/pan.rs +++ b/src/backend/curses/pan.rs @@ -413,7 +413,10 @@ impl backend::Backend for Concrete { pancurses::Input::KeySUndo => Event::Refresh, pancurses::Input::KeySuspend => Event::Refresh, pancurses::Input::KeyUndo => Event::Refresh, - pancurses::Input::KeyResize => Event::WindowResize, + pancurses::Input::KeyResize => { + pancurses::resize_term(0, 0); + Event::WindowResize + }, pancurses::Input::KeyEvent => Event::Refresh, // TODO: mouse support pancurses::Input::KeyMouse => self.parse_mouse_event(),