From f2fa51b2f70005ee8277f27c8548e8c92efbbf5c Mon Sep 17 00:00:00 2001 From: Rolo Date: Fri, 14 Jun 2024 01:17:27 -0700 Subject: [PATCH] refactor(commands): trim end of `pipe`-like output --- helix-term/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 5fc832351df34..0080a4be2fd9a 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -5763,7 +5763,7 @@ fn shell(cx: &mut compositor::Context, cmd: &str, behavior: &ShellBehavior) { if !pipe { shell_output = Some(result.clone()); } - result + Tendril::from(result.trim_end()) } Err(err) => { cx.editor.set_error(err.to_string());