Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
len assignment is never used
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
6f8d83f
..
d954288
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-855,12
+855,11
@@
mousereport(XEvent *e) {
}
if(!IS_SET(MODE_MOUSEX10)) {
}
if(!IS_SET(MODE_MOUSEX10)) {
- button += (
state & ShiftMask
? 4 : 0)
- + (
state & Mod4Mask
? 8 : 0)
- + (
state & ControlMask
? 16 : 0);
+ button += (
(state & ShiftMask )
? 4 : 0)
+ + (
(state & Mod4Mask )
? 8 : 0)
+ + (
(state & ControlMask)
? 16 : 0);
}
}
- len = 0;
if(IS_SET(MODE_MOUSESGR)) {
len = snprintf(buf, sizeof(buf), "\033[<%d;%d;%d%c",
button, x+1, y+1,
if(IS_SET(MODE_MOUSESGR)) {
len = snprintf(buf, sizeof(buf), "\033[<%d;%d;%d%c",
button, x+1, y+1,