commit 7d67d587b640160c618b7087594fe2db7f2674e3
Author: Klemens Nanni <[email protected]>
Date: Mon Jun 26 02:14:30 2017 +0200
[st][externalpipe] Use parentheses around assignment as condition
diff --git a/st.suckless.org/patches/st-externalpipe-0.7.diff
b/st.suckless.org/patches/st-externalpipe-0.7.diff
index f472b68..4c0cce9 100644
--- 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], "
", 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
index 6f6db35..4c54d0b 100644
--- 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], "
", 1) < 0)
+ break;