move cursor down a row when inserting a \n

This commit is contained in:
Josh Holtrop 2016-12-26 13:41:17 -05:00
parent 832f62add7
commit bbd38c76a2

View File

@ -305,6 +305,7 @@ void BufferPane::handle_key(uint32_t keyval)
if (keyval == SDLK_RETURN)
{
keyval = '\n';
m_cursor_screen_row++;
}
m_buffer->insert_code_point(keyval);
}