mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
refactor(commands): trim_end
of sh
output (#11161)
This commit is contained in:
parent
91e642ce50
commit
e46cedfc26
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user