tfix regression by selecting clipboard text - st - [fork] customized build of s… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f4020b2cc4fe45c9e8bfe47fc73deccd867cf9de | |
parent a5a928bfc1dd049780a45e072cb4ee42de7219bf | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 20 Mar 2018 21:25:30 +0100 | |
fix regression by selecting clipboard text | |
"restore the old behaviour that the primary doesn't get deleted by a simple | |
left click" | |
Patch by Daniel Tameling <[email protected]>, thanks! | |
Diffstat: | |
M x.c | 3 +++ | |
1 file changed, 3 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/x.c b/x.c | |
t@@ -618,6 +618,9 @@ selrequest(XEvent *e) | |
void | |
setsel(char *str, Time t) | |
{ | |
+ if (!str) | |
+ return; | |
+ | |
free(xsel.primary); | |
xsel.primary = str; | |