aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-20 02:02:28 +0000
committerBlaž Hrastnik2021-08-20 02:02:28 +0000
commitf60b549fb7c21ff92fe635729198555d704e5f93 (patch)
tree44c1322a97cb79c8fff2f2cfdc9f64fb4349a447 /helix-term/src
parent68626b8f7844381c7fdfc8ddeffcbe5e84f1db04 (diff)
cargo fmt
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 82d310ec..58a0e55f 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1509,7 +1509,10 @@ mod cmd {
return Ok(());
}
- let arg = args.get(0).context("argument missing")?.to_ascii_lowercase();
+ let arg = args
+ .get(0)
+ .context("argument missing")?
+ .to_ascii_lowercase();
// Attempt to parse argument as a line ending.
let line_ending = match arg {
@@ -1519,7 +1522,7 @@ mod cmd {
arg if arg.starts_with("lf") => LF,
arg if arg.starts_with("ff") => FF,
arg if arg.starts_with("nel") => Nel,
- _ => bail!("invalid line ending")
+ _ => bail!("invalid line ending"),
};
doc_mut!(cx.editor).line_ending = line_ending;