From bab56142472c4a970bd69b9599a7d99fb7715c97 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 30 Dec 2015 02:53:05 +0100 Subject: [PATCH] runtime.rs: Add options to editor string --- src/runtime.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/runtime.rs b/src/runtime.rs index 28e8af99..28635436 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -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> {