From 82e09c04a0313110c329d0cdf55764e0fc458c98 Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Thu, 9 Jan 2025 17:44:52 +0100 Subject: [PATCH] fix: Broken trim_whitespace fn --- helix-term/src/commands/typed.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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",