o-insert #5

Merged
mars merged 5 commits from roux/breed:o-insert into main 2023-04-12 04:21:46 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit badd6a0b71 - Show all commits

View File

@ -198,8 +198,7 @@ impl State {
let state = InsertState { append: false };
self.cursor.line += 1;
self.cursor.column = 0;
let index = self.buffer.cursor_to_char(self.cursor);
self.buffer.text.insert(index, "\n");
self.buffer.insert_char(self.cursor, '\n');
self.mode = Mode::Insert(state);
}
KeyCode::Char(':') => {