Reset bracket paste mode on detach.

This commit is contained in:
nicm 2015-02-05 11:46:57 +00:00
parent f1e68bfdd2
commit 90bf7026f6

2
tty.c
View File

@ -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));