diff options
| author | salmonik <raisersoft@proton.me> | 2026-02-06 03:01:00 +0100 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-02-06 03:01:00 +0100 |
| commit | 5bbb1806a1b608c1b1ff2a7a1b2acc5a67e8ea6c (patch) | |
| tree | f46780903639d1c4e33d9d46b5ffcb14486d75c6 /x.c | |
| parent | apply scrollback patch and urlclick patch (diff) | |
| download | st-5bbb1806a1b608c1b1ff2a7a1b2acc5a67e8ea6c.tar.gz st-5bbb1806a1b608c1b1ff2a7a1b2acc5a67e8ea6c.zip | |
copy text on selection
Diffstat (limited to '')
| -rw-r--r-- | x.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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 | ||
| 368 | void | 370 | void |
