runtime.rs: Add options to editor string
This commit is contained in:
parent
70fbd3914e
commit
bab5614247
1 changed files with 2 additions and 3 deletions
|
@ -96,9 +96,9 @@ impl<'a> Runtime<'a> {
|
|||
use std::env::var;
|
||||
|
||||
if let Some(editor) = self.config.editor() {
|
||||
editor
|
||||
editor + &self.config.editor_opts()[..]
|
||||
} else if let Some(editor) = self.configuration.editor() {
|
||||
editor
|
||||
editor + &self.configuration.editor_opts()[..]
|
||||
} else if let Ok(editor) = var("EDITOR") {
|
||||
editor
|
||||
} else {
|
||||
|
@ -106,7 +106,6 @@ impl<'a> Runtime<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
impl<'a> Debug for Runtime<'a> {
|
||||
|
|
Loading…
Reference in a new issue