Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
a5a928b
)
fix regression by selecting clipboard text
author
Hiltjo Posthuma <
[email protected]
>
Tue, 20 Mar 2018 20:25:30 +0000
(21:25 +0100)
committer
Hiltjo Posthuma <
[email protected]
>
Tue, 20 Mar 2018 20:25:30 +0000
(21:25 +0100)
"restore the old behaviour that the primary doesn't get deleted by a simple
left click"
Patch by Daniel Tameling <
[email protected]
>, thanks!
x.c
diff
|
blob
|
history
diff --git
a/x.c
b/x.c
index
12bc86b
..
c343ba2
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-618,6
+618,9
@@
selrequest(XEvent *e)
void
setsel(char *str, Time t)
{
void
setsel(char *str, Time t)
{
+ if (!str)
+ return;
+
free(xsel.primary);
xsel.primary = str;
free(xsel.primary);
xsel.primary = str;