From 3b77398c5b0cfc5b9327620fe725dcbd2ea861f2 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 31 Jul 2018 13:15:39 +0100 Subject: [PATCH] Add an assert to catch newpad returning a nullptr --- src/ncurses_ui.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 93fbf559..e830c012 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -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);