set default edit_mode to emacs instead of vi (#2278)

This commit is contained in:
Darren Schroeder 2020-07-30 14:59:20 -05:00 committed by GitHub
parent aca7f71737
commit 16cfc36aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -641,7 +641,7 @@ pub fn set_rustyline_configuration() -> (Editor<Helper>, IndexMap<String, Value>
Ok(s) if s.to_lowercase() == "emacs" => { Ok(s) if s.to_lowercase() == "emacs" => {
rustyline::config::EditMode::Emacs rustyline::config::EditMode::Emacs
} }
_ => rustyline::config::EditMode::Vi, _ => rustyline::config::EditMode::Emacs,
}; };
rl.set_edit_mode(edit_mode); rl.set_edit_mode(edit_mode);
} }