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