Fix display/UI crash and correctness bugs (@sirus20x6)

This commit is contained in:
rakshasa
2026-03-16 16:01:36 +01:00
committed by Jari Sundell
parent 674ae767aa
commit 38fc815d52
7 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ WindowInput::redraw() {
m_canvas->erase();
m_canvas->print(0, 0, "%s> %s", m_title.c_str(), m_input != NULL ? m_input->c_str() : "<NULL>");
if (m_focus)
if (m_focus && m_input != NULL)
m_canvas->set_attr(m_input->get_pos() + 2 + m_title.size(), 0, 1, A_REVERSE, COLOR_PAIR(0));
}