st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit d318b3c03f80c37f612276ec1e4ddfb8f750eb9b
parent 8e96ad302c0609fc79e59386ab5826879712a173
Author: Bakkeby <bakkeby@gmail.com>
Date:   Thu, 14 Mar 2024 09:57:10 +0100

externalpipe + reflow compatibility fix ref. #122

Diffstat:
Mpatch/externalpipe.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/patch/externalpipe.c b/patch/externalpipe.c @@ -42,7 +42,11 @@ externalpipe(const Arg *arg) newline = 0; for (n = 0; n < term.row; n++) { bp = term.line[n]; + #if REFLOW_PATCH + lastpos = MIN(tlinelen(TLINE(n)), term.col) - 1; + #else lastpos = MIN(tlinelen(n) + 1, term.col) - 1; + #endif // REFLOW_PATCH if (lastpos < 0) break; end = &bp[lastpos + 1];