Do not display info box when there is not enough room on screen for it
Fixes #159
This commit is contained in:
parent
6974cfbf64
commit
202d4766c2
|
@ -832,6 +832,10 @@ void NCursesUI::info_show(StringView title, StringView content,
|
||||||
else
|
else
|
||||||
pos = compute_pos(anchor, size, m_menu_win, style == InfoStyle::InlineAbove);
|
pos = compute_pos(anchor, size, m_menu_win, style == InfoStyle::InlineAbove);
|
||||||
|
|
||||||
|
// The info window will hide the status line
|
||||||
|
if (pos.line + size.line > m_dimensions.line)
|
||||||
|
return;
|
||||||
|
|
||||||
m_info_win = (NCursesWin*)newwin((int)size.line, (int)size.column,
|
m_info_win = (NCursesWin*)newwin((int)size.line, (int)size.column,
|
||||||
(int)pos.line, (int)pos.column);
|
(int)pos.line, (int)pos.column);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user