Add an assert to catch newpad returning a nullptr
This commit is contained in:
parent
075d1048ab
commit
3b77398c5b
|
@ -502,6 +502,7 @@ void NCursesUI::check_resize(bool force)
|
|||
resize_term(ws.ws_row, ws.ws_col);
|
||||
|
||||
m_window = (NCursesWin*)newpad(ws.ws_row, ws.ws_col);
|
||||
kak_assert(m_window);
|
||||
intrflush(m_window, false);
|
||||
keypad(m_window, true);
|
||||
meta(m_window, true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user