aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorAlexis-Lapierre2023-04-30 22:40:06 +0000
committerGitHub2023-04-30 22:40:06 +0000
commitb0b3f45b80931e73eadaf7e73f1981283b8e49fc (patch)
tree77329232f1ca98e5eaa131f471ea25b23e5eb0d5 /helix-term/src
parentefd09b6c7ccf8cdfde5856fd9db0d9b29ea5bd81 (diff)
Conserve BOM and properly support UTF16 (#6497)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 88393ff4..882a8a1d 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -5111,7 +5111,8 @@ async fn shell_impl_async(
let output = if let Some(mut stdin) = process.stdin.take() {
let input_task = tokio::spawn(async move {
if let Some(input) = input {
- helix_view::document::to_writer(&mut stdin, encoding::UTF_8, &input).await?;
+ helix_view::document::to_writer(&mut stdin, (encoding::UTF_8, false), &input)
+ .await?;
}
Ok::<_, anyhow::Error>(())
});