Add an assert to catch newpad returning a nullptr

This commit is contained in:
Maxime Coste 2018-07-31 13:15:39 +01:00
parent 075d1048ab
commit 3b77398c5b

View File

@ -502,6 +502,7 @@ void NCursesUI::check_resize(bool force)
resize_term(ws.ws_row, ws.ws_col); resize_term(ws.ws_row, ws.ws_col);
m_window = (NCursesWin*)newpad(ws.ws_row, ws.ws_col); m_window = (NCursesWin*)newpad(ws.ws_row, ws.ws_col);
kak_assert(m_window);
intrflush(m_window, false); intrflush(m_window, false);
keypad(m_window, true); keypad(m_window, true);
meta(m_window, true); meta(m_window, true);