diff options
-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 3c20fe36..f4978336 100644 --- a/src/input.rs +++ b/src/input.rs @@ -285,7 +285,7 @@ impl Action { fn paste<A: ActionContext>(&self, ctx: &mut A, contents: String) { if ctx.terminal_mode().contains(TermMode::BRACKETED_PASTE) { ctx.write_to_pty(&b"\x1b[200~"[..]); - ctx.write_to_pty(contents.into_bytes()); + ctx.write_to_pty(contents.replace("\x1b","").into_bytes()); ctx.write_to_pty(&b"\x1b[201~"[..]); } else { // In non-bracketed (ie: normal) mode, terminal applications cannot distinguish |