From bb3da150de0b63fce3b3f329f60f428ce469d537 Mon Sep 17 00:00:00 2001 From: Giorgio Gallo Date: Thu, 4 Jan 2018 02:35:22 +0100 Subject: [PATCH] Resolves #733. When pasting in non-bracketed mode, LFs are replaced with CRs. --- src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.rs b/src/input.rs index 6aae87f9..ff9b7b03 100644 --- a/src/input.rs +++ b/src/input.rs @@ -240,7 +240,7 @@ impl Action { ctx.write_to_pty(contents.into_bytes()); ctx.write_to_pty(&b"\x1b[201~"[..]); } else { - ctx.write_to_pty(contents.into_bytes()); + ctx.write_to_pty(contents.replace("\n","\r").into_bytes()); } } }