mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 00:43:33 +01:00
set default edit_mode to emacs instead of vi (#2278)
This commit is contained in:
parent
aca7f71737
commit
16cfc36aec
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user