mirror of
https://github.com/mawww/kakoune.git
synced 2025-01-05 10:30:41 +03:00
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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user