mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
Fix Bracketed Paste Mode when input contains end sequence. (#1243)
* Fix Bracketed Paste Mode when input contains end sequence. * Remove \x1b instead of just the paste end sequence.
This commit is contained in:
parent
177a5c39c3
commit
417ad9d430
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue