fix: Broken trim_whitespace fn

This commit is contained in:
Kalle Carlbark 2025-01-09 17:44:52 +01:00
parent 0f2fbd2b6f
commit 82e09c04a0

View file

@ -2498,11 +2498,7 @@ fn trim_whitespace_impl(doc: &Document, selection: &Selection) -> Transaction {
Transaction::delete(doc.text(), deletions.into_iter().rev()) Transaction::delete(doc.text(), deletions.into_iter().rev())
} }
fn trim_whitespace( fn trim_whitespace(cx: &mut compositor::Context, _args: Args, event: PromptEvent) -> anyhow::Result<()> {
cx: &mut compositor::Context,
_args: &[Cow<str>],
event: PromptEvent,
) -> anyhow::Result<()> {
if event != PromptEvent::Validate { if event != PromptEvent::Validate {
return Ok(()); return Ok(());
} }
@ -2514,6 +2510,7 @@ fn trim_whitespace(
Ok(()) Ok(())
} }
pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
TypableCommand { TypableCommand {
name: "quit", name: "quit",