fix: Broken trim_whitespace fn
This commit is contained in:
parent
0f2fbd2b6f
commit
82e09c04a0
1 changed files with 2 additions and 5 deletions
|
@ -2498,11 +2498,7 @@ fn trim_whitespace_impl(doc: &Document, selection: &Selection) -> Transaction {
|
|||
Transaction::delete(doc.text(), deletions.into_iter().rev())
|
||||
}
|
||||
|
||||
fn trim_whitespace(
|
||||
cx: &mut compositor::Context,
|
||||
_args: &[Cow<str>],
|
||||
event: PromptEvent,
|
||||
) -> anyhow::Result<()> {
|
||||
fn trim_whitespace(cx: &mut compositor::Context, _args: Args, event: PromptEvent) -> anyhow::Result<()> {
|
||||
if event != PromptEvent::Validate {
|
||||
return Ok(());
|
||||
}
|
||||
|
@ -2514,6 +2510,7 @@ fn trim_whitespace(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
|
||||
TypableCommand {
|
||||
name: "quit",
|
||||
|
|
Loading…
Reference in a new issue