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;
|
use std::env::var;
|
||||||
|
|
||||||
if let Some(editor) = self.config.editor() {
|
if let Some(editor) = self.config.editor() {
|
||||||
editor
|
editor + &self.config.editor_opts()[..]
|
||||||
} else if let Some(editor) = self.configuration.editor() {
|
} else if let Some(editor) = self.configuration.editor() {
|
||||||
editor
|
editor + &self.configuration.editor_opts()[..]
|
||||||
} else if let Ok(editor) = var("EDITOR") {
|
} else if let Ok(editor) = var("EDITOR") {
|
||||||
editor
|
editor
|
||||||
} else {
|
} else {
|
||||||
|
@ -106,7 +106,6 @@ impl<'a> Runtime<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Debug for Runtime<'a> {
|
impl<'a> Debug for Runtime<'a> {
|
||||||
|
|
Loading…
Reference in a new issue