summaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-09-27 16:32:04 +0200
committerCanop <cano.petrole@gmail.com>2020-09-27 16:32:04 +0200
commit59b8f5174505bef2cb96ad1c3a67010c03131f83 (patch)
tree00ba319b59b645a50d6dc0d7781b5de5fcb84b3d /src/command
parenta2ecff8d1ec2b983d2794586b11becdc9defa47c (diff)
fix opening of link of link
Fix #280
Diffstat (limited to 'src/command')
-rw-r--r--src/command/sequence.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/sequence.rs b/src/command/sequence.rs
index 1b71e7f..ac064cd 100644
--- a/src/command/sequence.rs
+++ b/src/command/sequence.rs
@@ -29,7 +29,7 @@ impl Sequence {
pub fn new(raw: String, separator: Option<String>) -> Self {
Self {
raw,
- separator: separator.unwrap_or_else(|| Sequence::local_separator()),
+ separator: separator.unwrap_or_else(Sequence::local_separator),
}
}
pub fn new_single(cmd: String) -> Self {