[wiki] [sites] [st][externalpipe] Use parentheses around assignment as condition || Klemens Nanni
commit 7d67d587b640160c618b7087594fe2db7f2674e3
Author: Klemens Nanni <kl3_AT_posteo.org>
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
_AT_@ -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
_AT_@ -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;
Received on Mon Jun 26 2017 - 02:15:52 CEST
This archive was generated by hypermail 2.3.0
: Mon Jun 26 2017 - 02:24:18 CEST