aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r--src/window-xlib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c
index 788d5a8..6a924ec 100644
--- a/src/window-xlib.c
+++ b/src/window-xlib.c
@@ -903,7 +903,13 @@ static void runes_window_backend_handle_selection_notify_event(
XGetWindowProperty(
w->dpy, e->requestor, e->property, 0, 0x1fffffff, 0,
AnyPropertyType, &type, &format, &nitems, &left, &buf);
+ if (t->scr.bracketed_paste) {
+ runes_pty_backend_write(t, "\e[200~", 6);
+ }
runes_pty_backend_write(t, (char *)buf, nitems);
+ if (t->scr.bracketed_paste) {
+ runes_pty_backend_write(t, "\e[201~", 6);
+ }
XFree(buf);
}
}