Skip to content

Commit

Permalink
refactor(commands): trim_end of sh output (helix-editor#11161)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoloEdits authored Aug 11, 2024
1 parent 91e642c commit e46cedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/commands/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,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(
Expand Down

0 comments on commit e46cedf

Please sign in to comment.