aboutsummaryrefslogtreecommitdiff
path: root/src/platform/mod.rs
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-09-03 19:03:47 +0200
committerGitHub <noreply@github.com>2026-09-03 19:03:47 +0200
commitec745235a95df0004e14069b79689814104c199c (patch)
tree6d48abcad2b60082ed3127c792239d5fbce917b9 /src/platform/mod.rs
parent27b05c1082790e33e072e94822522eaea1753903 (diff)
fix(windows): preserve LF paste order (#3582)
refs #3172
Diffstat (limited to 'src/platform/mod.rs')
-rw-r--r--src/platform/mod.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs
index b831e120..f15c71ef 100644
--- a/src/platform/mod.rs
+++ b/src/platform/mod.rs
@@ -39,6 +39,15 @@ pub(crate) fn apply_pane_runtime_marker(command: &mut portable_pty::CommandBuild
apply_pane_runtime_marker_platform(command);
}
+pub(crate) fn prepare_paste_text_for_pty(text: String) -> String {
+ prepare_paste_text_for_pty_platform(text)
+}
+
+#[cfg(not(windows))]
+fn prepare_paste_text_for_pty_platform(text: String) -> String {
+ text
+}
+
#[cfg(not(windows))]
pub(crate) fn terminal_title_for_presentation(title: &str) -> &str {
title