From 90bf7026f6bb83e0781ff2fc71c32ce973edce59 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 5 Feb 2015 11:46:57 +0000 Subject: [PATCH] Reset bracket paste mode on detach. --- tty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tty.c b/tty.c index 875e4200..1bb89811 100644 --- a/tty.c +++ b/tty.c @@ -281,6 +281,8 @@ tty_stop_tty(struct tty *tty) else tty_raw(tty, tty_term_string1(tty->term, TTYC_SS, 0)); } + if (tty->mode & MODE_BRACKETPASTE) + tty_raw(tty, "\033[?2004l"); tty_raw(tty, tty_term_string(tty->term, TTYC_CR)); tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));