pinosaur
/
st.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
delete clipboard properties after pasting them
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
839136d
..
6736464
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1151,8
+1151,7
@@
selnotify(XEvent *e)
* Deleting the property again tells the selection owner to send the
* next data chunk in the property.
*/
* Deleting the property again tells the selection owner to send the
* next data chunk in the property.
*/
- if (e->type == PropertyNotify)
- XDeleteProperty(xw.dpy, xw.win, (int)property);
+ XDeleteProperty(xw.dpy, xw.win, (int)property);
}
void
}
void
@@
-1404,9
+1403,9
@@
stty(void)
if ((n = strlen(s)) > siz-1)
die("stty parameter length too long\n");
*q++ = ' ';
if ((n = strlen(s)) > siz-1)
die("stty parameter length too long\n");
*q++ = ' ';
-
q =
memcpy(q, s, n);
+ memcpy(q, s, n);
q += n;
q += n;
- siz-= n + 1;
+ siz
-= n + 1;
}
*q = '\0';
if (system(cmd) != 0)
}
*q = '\0';
if (system(cmd) != 0)