[dev] [st] [PATCH] Clarify calculation precedence for '&' and '?'

2015-04-22 Thread Daniel Martí
Signed-off-by: Daniel Martí --- st.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/st.c b/st.c index d5bf8f1..57cb052 100644 --- a/st.c +++ b/st.c @@ -859,9 +859,9 @@ mousereport(XEvent *e) { } if(!IS_SET(MODE_MOUSEX10)) { - button

[dev] [st] [PATCH] Use %u for uint

2015-04-22 Thread Daniel Martí
Signed-off-by: Daniel Martí --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/st.c b/st.c index 0204b2e..d5bf8f1 100644 --- a/st.c +++ b/st.c @@ -1746,7 +1746,7 @@ tdefcolor(int *attr, int *npar, int l) { b = attr[*npar + 4]; *npar += 4

[dev] [st] [PATCH] len assignment is never used

2015-04-22 Thread Daniel Martí
Signed-off-by: Daniel Martí --- st.c | 1 - 1 file changed, 1 deletion(-) diff --git a/st.c b/st.c index 57cb052..6f236ec 100644 --- a/st.c +++ b/st.c @@ -864,7 +864,6 @@ mousereport(XEvent *e) { + ((state & ControlMask) ? 16 : 0); } - len = 0;

Re: [dev] need updated patch for st to use DEL (0x7F) for backspace key

2015-02-20 Thread Daniel Martí
On Fri, Feb 20, 2015 at 17:10:19 +0100, FRIGN wrote: > There you go! > Please let me know if it works. Apply with "git am". I've been using this patch for weeks now, seems to work fine. I agree that it should be included in st.suckless.org/patches. -- Daniel Martí -