refactor(commands): `trim_end` of `sh` output (#11161)

pull/11476/head
RoloEdits 3 months ago committed by GitHub
parent 91e642ce50
commit e46cedfc26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2300,7 +2300,7 @@ fn run_shell_command(
move |editor: &mut Editor, compositor: &mut Compositor| { move |editor: &mut Editor, compositor: &mut Compositor| {
if !output.is_empty() { if !output.is_empty() {
let contents = ui::Markdown::new( let contents = ui::Markdown::new(
format!("```sh\n{}\n```", output), format!("```sh\n{}\n```", output.trim_end()),
editor.syn_loader.clone(), editor.syn_loader.clone(),
); );
let popup = Popup::new("shell", contents).position(Some( let popup = Popup::new("shell", contents).position(Some(

Loading…
Cancel
Save