diff options
author | Giorgio Gallo <giorgio.gallo@bitnic.it> | 2018-01-04 02:35:22 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-01-07 13:11:46 -0800 |
commit | bb3da150de0b63fce3b3f329f60f428ce469d537 (patch) | |
tree | 3a8c4afaceaa2187938a3a18d59379bf4fb2d2f9 | |
parent | b600e40c8f8caa6f29016a3bbf4194dbecbe237a (diff) | |
download | alacritty-bb3da150de0b63fce3b3f329f60f428ce469d537.tar.gz alacritty-bb3da150de0b63fce3b3f329f60f428ce469d537.zip |
Resolves #733.
When pasting in non-bracketed mode, LFs are replaced with CRs.
-rw-r--r-- | src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } } } |