sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7d67d587b640160c618b7087594fe2db7f2674e3
parent 4c6b77554e351ede4d4050cf108a2919d4d00663
Author: Klemens Nanni <kl3@posteo.org>
Date:   Mon, 26 Jun 2017 02:14:30 +0200

[st][externalpipe] Use parentheses around assignment as condition

Diffstat:
Mst.suckless.org/patches/st-externalpipe-0.7.diff | 2+-
Mst.suckless.org/patches/st-externalpipe-20170608-b331da5.diff | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/st.suckless.org/patches/st-externalpipe-0.7.diff b/st.suckless.org/patches/st-externalpipe-0.7.diff @@ -63,7 +63,7 @@ index 2594c65..ecd9bdc 100644 + for (; bp < end; ++bp) + if (xwrite(to[1], buf, utf8encode(bp->u, buf)) < 0) + break; -+ if (newline = term.line[n][lastpos].mode & ATTR_WRAP) ++ if ((newline = term.line[n][lastpos].mode & ATTR_WRAP)) + continue; + if (xwrite(to[1], "\n", 1) < 0) + break; diff --git a/st.suckless.org/patches/st-externalpipe-20170608-b331da5.diff b/st.suckless.org/patches/st-externalpipe-20170608-b331da5.diff @@ -53,7 +53,7 @@ index 8d4a9f2..3b05f0b 100644 + for (; bp < end; ++bp) + if (xwrite(to[1], buf, utf8encode(bp->u, buf)) < 0) + break; -+ if (newline = term.line[n][lastpos].mode & ATTR_WRAP) ++ if ((newline = term.line[n][lastpos].mode & ATTR_WRAP)) + continue; + if (xwrite(to[1], "\n", 1) < 0) + break;