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()
|
||||
.value_of("editor")
|
||||
.map(String::from)
|
||||
.or({
|
||||
match self.configuration {
|
||||
Some(ref c) => c.editor().cloned(),
|
||||
_ => None,
|
||||
}
|
||||
.or(match self.configuration {
|
||||
Some(ref c) => c.editor().cloned(),
|
||||
_ => None,
|
||||
})
|
||||
.or(env::var("EDITOR").ok())
|
||||
.map(Command::new)
|
||||
|
|
Loading…
Reference in a new issue