Skip to content

Commit

Permalink
refactor(commands): trim end of pipe-like output
Browse files Browse the repository at this point in the history
  • Loading branch information
RoloEdits committed Jun 14, 2024
1 parent 9c479e6 commit f2fa51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5763,7 +5763,7 @@ fn shell(cx: &mut compositor::Context, cmd: &str, behavior: &ShellBehavior) {
if !pipe {
shell_output = Some(result.clone());
}
result
Tendril::from(result.trim_end())
}
Err(err) => {
cx.editor.set_error(err.to_string());
Expand Down

0 comments on commit f2fa51b

Please sign in to comment.