Minify match
This commit is contained in:
parent
d3d6e830d7
commit
0f47c4afc7
1 changed files with 3 additions and 5 deletions
|
@ -394,11 +394,9 @@ impl<'a> Runtime<'a> {
|
||||||
self.cli()
|
self.cli()
|
||||||
.value_of("editor")
|
.value_of("editor")
|
||||||
.map(String::from)
|
.map(String::from)
|
||||||
.or({
|
.or(match self.configuration {
|
||||||
match self.configuration {
|
Some(ref c) => c.editor().cloned(),
|
||||||
Some(ref c) => c.editor().cloned(),
|
_ => None,
|
||||||
_ => None,
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.or(env::var("EDITOR").ok())
|
.or(env::var("EDITOR").ok())
|
||||||
.map(Command::new)
|
.map(Command::new)
|
||||||
|
|
Loading…
Reference in a new issue