warp cursor within scroll range on window resize

This commit is contained in:
Josh Holtrop 2016-09-07 22:06:53 -04:00
parent 7df23e971e
commit c2166b4bd1

View File

@ -381,6 +381,7 @@ void Window::resize()
if (m_columns < 1)
m_columns = 1;
m_rows = (m_height + m_font.get_line_height() - 1) / m_font.get_line_height();
update_cursor_row(m_cursor_row);
}
void Window::redraw()