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 };
|
let state = InsertState { append: false };
|
||||||
self.cursor.line += 1;
|
self.cursor.line += 1;
|
||||||
self.cursor.column = 0;
|
self.cursor.column = 0;
|
||||||
let index = self.buffer.cursor_to_char(self.cursor);
|
self.buffer.insert_char(self.cursor, '\n');
|
||||||
self.buffer.text.insert(index, "\n");
|
|
||||||
self.mode = Mode::Insert(state);
|
self.mode = Mode::Insert(state);
|
||||||
}
|
}
|
||||||
KeyCode::Char(':') => {
|
KeyCode::Char(':') => {
|
||||||
|
|
Reference in New Issue