From 8878f44ac18c1f641e597e713e170f44fb08353c Mon Sep 17 00:00:00 2001 From: Rolo Date: Sun, 14 Jul 2024 02:22:39 -0700 Subject: [PATCH] refactor(commands): `trim_end` of `sh` output --- helix-term/src/commands/typed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index ed1547f1f5ad..92a5ded13df8 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -2303,7 +2303,7 @@ fn run_shell_command( move |editor: &mut Editor, compositor: &mut Compositor| { if !output.is_empty() { let contents = ui::Markdown::new( - format!("```sh\n{}\n```", output), + format!("```sh\n{}\n```", output.trim_end()), editor.syn_loader.clone(), ); let popup = Popup::new("shell", contents).position(Some(