mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +00:00
Call resize_item on Windows only
This commit is contained in:
parent
7469bd36be
commit
f8f23a5dda
@ -414,7 +414,11 @@ impl backend::Backend for Concrete {
|
|||||||
pancurses::Input::KeySuspend => Event::Refresh,
|
pancurses::Input::KeySuspend => Event::Refresh,
|
||||||
pancurses::Input::KeyUndo => Event::Refresh,
|
pancurses::Input::KeyUndo => Event::Refresh,
|
||||||
pancurses::Input::KeyResize => {
|
pancurses::Input::KeyResize => {
|
||||||
pancurses::resize_term(0, 0);
|
// Let pancurses adjust their structures when the window is resized.
|
||||||
|
// Do it for Windows only, as 'resize_term' is not implemented for Unix
|
||||||
|
if cfg!(target_os = "windows") {
|
||||||
|
pancurses::resize_term(0, 0);
|
||||||
|
}
|
||||||
Event::WindowResize
|
Event::WindowResize
|
||||||
},
|
},
|
||||||
pancurses::Input::KeyEvent => Event::Refresh,
|
pancurses::Input::KeyEvent => Event::Refresh,
|
||||||
|
Loading…
Reference in New Issue
Block a user