move cursor down a row when inserting a \n
This commit is contained in:
1 parent
832f62add7
commit
bbd38c76a2
1 file changed
+1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user