move cursor down a row when inserting a \n
This commit is contained in:
parent
832f62add7
commit
bbd38c76a2
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user