fixed outdated code

This commit is contained in:
Roux 2023-04-12 00:10:32 -04:00
parent 36bbb3b77b
commit badd6a0b71
1 changed files with 1 additions and 2 deletions

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(':') => {