summaryrefslogtreecommitdiffstats
path: root/x.c
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2026-02-06 03:01:00 +0100
committersalmonik <raisersoft@proton.me>2026-02-06 03:01:00 +0100
commit5bbb1806a1b608c1b1ff2a7a1b2acc5a67e8ea6c (patch)
treef46780903639d1c4e33d9d46b5ffcb14486d75c6 /x.c
parentapply scrollback patch and urlclick patch (diff)
downloadst-5bbb1806a1b608c1b1ff2a7a1b2acc5a67e8ea6c.tar.gz
st-5bbb1806a1b608c1b1ff2a7a1b2acc5a67e8ea6c.zip
copy text on selection
Diffstat (limited to '')
-rw-r--r--x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/x.c b/x.c
index fbb7891..bda2d81 100644
--- a/x.c
+++ b/x.c
@@ -361,8 +361,10 @@ mousesel(XEvent *e, int done)
361 } 361 }
362 } 362 }
363 selextend(evcol(e), evrow(e), seltype, done); 363 selextend(evcol(e), evrow(e), seltype, done);
364 if (done) 364 if (done) {
365 setsel(getsel(), e->xbutton.time); 365 setsel(getsel(), e->xbutton.time);
366 clipcopy(NULL); /* Reuse existing function */
367 }
366} 368}
367 369
368void 370void