mirror of https://github.com/helix-editor/helix
cargo fmt
parent
68626b8f78
commit
f60b549fb7
|
@ -1509,7 +1509,10 @@ mod cmd {
|
||||||
return Ok(());
|
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.
|
// Attempt to parse argument as a line ending.
|
||||||
let line_ending = match arg {
|
let line_ending = match arg {
|
||||||
|
@ -1519,7 +1522,7 @@ mod cmd {
|
||||||
arg if arg.starts_with("lf") => LF,
|
arg if arg.starts_with("lf") => LF,
|
||||||
arg if arg.starts_with("ff") => FF,
|
arg if arg.starts_with("ff") => FF,
|
||||||
arg if arg.starts_with("nel") => Nel,
|
arg if arg.starts_with("nel") => Nel,
|
||||||
_ => bail!("invalid line ending")
|
_ => bail!("invalid line ending"),
|
||||||
};
|
};
|
||||||
|
|
||||||
doc_mut!(cx.editor).line_ending = line_ending;
|
doc_mut!(cx.editor).line_ending = line_ending;
|
||||||
|
|
Loading…
Reference in New Issue