forked from mars/breed
fixed outdated code
This commit is contained in:
parent
36bbb3b77b
commit
badd6a0b71
|
@ -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(':') => {
|
||||
|
|
Loading…
Reference in New Issue