Add command_mode action

This commit is contained in:
mars 2023-04-13 00:04:01 -04:00
parent a40ef42ed6
commit 18604f3ddd
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ pub fn goto_line_end_newline(state: &mut State) {
state.set_error("goto_line_end_newline is unimplemented");
}
pub fn command_mode(state: &mut State) {
state.mode = Mode::Command(Default::default());
}
pub fn normal_mode(state: &mut State) {
match state.mode {
Mode::Insert(InsertState { append: true }) => {