Call resize_term on KeySize

This commit is contained in:
Alexander Gavrilov 2018-01-09 08:01:22 -08:00
parent 4383526ec0
commit 7469bd36be

View File

@ -413,7 +413,10 @@ impl backend::Backend for Concrete {
pancurses::Input::KeySUndo => Event::Refresh, pancurses::Input::KeySUndo => Event::Refresh,
pancurses::Input::KeySuspend => Event::Refresh, pancurses::Input::KeySuspend => Event::Refresh,
pancurses::Input::KeyUndo => 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, pancurses::Input::KeyEvent => Event::Refresh,
// TODO: mouse support // TODO: mouse support
pancurses::Input::KeyMouse => self.parse_mouse_event(), pancurses::Input::KeyMouse => self.parse_mouse_event(),