diff --git a/terminal.c b/terminal.c index 6f93c78e..60262d24 100644 --- a/terminal.c +++ b/terminal.c @@ -3089,7 +3089,8 @@ static inline void term_keyinput_internal( bufchain_add(&term->inbuf, buf, true_len); term_added_data(term); } - term_bracketed_paste_stop(term); + if (interactive) + term_bracketed_paste_stop(term); if (term->ldisc) ldisc_send(term->ldisc, buf, len, interactive); term_seen_key_event(term);