st
simple terminal
git clone https://9o.is/git/st.git
commit 00b3e0068c7472a83b7e81e7c46c12bc14f1bddf parent 1a22e4ce910ccddb159cd609d6753fe56e62eafb Author: mvdan@mvdan.cc <mvdan@mvdan.cc> Date: Wed, 22 Apr 2015 15:08:00 +0200 Clarify calculation precedence for '&' and '?' Signed-off-by: Daniel Martà <mvdan@mvdan.cc> Diffstat:
| M | st.c | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/st.c b/st.c @@ -855,9 +855,9 @@ mousereport(XEvent *e) { } 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;