This commit is contained in:
holio0
2025-03-29 08:44:06 +05:30
committed by GitHub
3 changed files with 17 additions and 2 deletions

View File

@@ -1352,8 +1352,10 @@ tty_keys_clipboard(struct tty *tty, const char *buf, size_t len, size_t *size)
end--;
/* If we did not request this, ignore it. */
if (~tty->flags & TTY_OSC52QUERY)
return (0);
if (~tty->flags & TTY_OSC52QUERY) {
return options_get_number(global_options,
"forward-unrequested-escseq") ? (-1) : (0);
}
tty->flags &= ~TTY_OSC52QUERY;
evtimer_del(&tty->clipboard_timer);