mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-21 18:41:29 +03:00
NCursesUI::draw_menu: be tolerant when the menu_win was not created
This commit is contained in:
parent
1388c0d540
commit
fcb3594e4a
@ -370,7 +370,10 @@ void NCursesUI::print_status(const DisplayLine& status)
|
||||
|
||||
void NCursesUI::draw_menu()
|
||||
{
|
||||
kak_assert(m_menu_win);
|
||||
// menu show may have not created the window if it did not fit.
|
||||
// so be tolerant.
|
||||
if (not m_menu_win)
|
||||
return;
|
||||
|
||||
auto menu_fg = get_color_pair(m_menu_fg);
|
||||
auto menu_bg = get_color_pair(m_menu_bg);
|
||||
|
Loading…
Reference in New Issue
Block a user