externalpipe + reflow compatibility fix ref. #122
This commit is contained in:
parent
8e96ad302c
commit
d318b3c03f
|
@ -42,7 +42,11 @@ externalpipe(const Arg *arg)
|
||||||
newline = 0;
|
newline = 0;
|
||||||
for (n = 0; n < term.row; n++) {
|
for (n = 0; n < term.row; n++) {
|
||||||
bp = term.line[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;
|
lastpos = MIN(tlinelen(n) + 1, term.col) - 1;
|
||||||
|
#endif // REFLOW_PATCH
|
||||||
if (lastpos < 0)
|
if (lastpos < 0)
|
||||||
break;
|
break;
|
||||||
end = &bp[lastpos + 1];
|
end = &bp[lastpos + 1];
|
||||||
|
|
Loading…
Reference in New Issue