diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index f4a2c8c5..728d6dc7 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -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], - 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",