1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-15 23:08:47 +00:00

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 else
tty_raw(tty, tty_term_string1(tty->term, TTYC_SS, 0)); 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_CR));
tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM)); tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));