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 and mxxntype committed Aug 14, 2024
1 parent 12a8beb commit dcd250b
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 dcd250b

Please sign in to comment.