Turn off the "is this a paste" guessing if the terminal supports bracket

pasting instead, GitHub issue 5031.
This commit is contained in:
nicm
2026-05-12 10:28:09 +00:00
parent 9e3653a612
commit 3d6c542e34

View File

@@ -1062,6 +1062,8 @@ server_client_is_assume_paste(struct client *c)
return (0);
if ((t = options_get_number(s->options, "assume-paste-time")) == 0)
return (0);
if (tty_term_has(c->tty.term, TTYC_ENBP))
return (0);
timersub(&c->activity_time, &c->last_activity_time, &tv);
if (tv.tv_sec == 0 && tv.tv_usec < t * 1000) {