runtime.rs: Add options to editor string

This commit is contained in:
Matthias Beyer 2015-12-30 02:53:05 +01:00
parent 70fbd3914e
commit bab5614247

View file

@ -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> {