Fix hardware cursor positioning in prompt when status bar is on bottom

This commit is contained in:
Maxime Coste 2017-05-24 15:20:23 +01:00
parent 720e567ac2
commit 119a5b8442

View File

@ -318,7 +318,7 @@ void NCursesUI::redraw()
m_info.refresh();
if (m_cursor.mode == CursorMode::Prompt)
wmove(newscr, m_status_on_top ? 0 : (int)m_dimensions.line + 1,
wmove(newscr, m_status_on_top ? 0 : (int)m_dimensions.line,
(int)m_cursor.coord.column);
else
wmove(newscr, (int)m_cursor.coord.line + (m_status_on_top ? 1 : 0),