Skip to content

Commit e46cedf

Browse files
authored
refactor(commands): trim_end of sh output (#11161)
1 parent 91e642c commit e46cedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helix-term/src/commands/typed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2300,7 +2300,7 @@ fn run_shell_command(
23002300
move |editor: &mut Editor, compositor: &mut Compositor| {
23012301
if !output.is_empty() {
23022302
let contents = ui::Markdown::new(
2303-
format!("```sh\n{}\n```", output),
2303+
format!("```sh\n{}\n```", output.trim_end()),
23042304
editor.syn_loader.clone(),
23052305
);
23062306
let popup = Popup::new("shell", contents).position(Some(

0 commit comments

Comments
 (0)