termux-app/commit/701b5ccd5ca8ccb426046c6bc7c86279e29b5ae0

* 701b5ccd5c
This commit is contained in:
Martin Valba 2023-01-08 21:00:35 +02:00
parent ef7dab8568
commit e3674d8697

View File

@ -93,8 +93,11 @@ public final class TerminalBuffer {
if (c != ' ') lastPrintingCharIndex = i;
}
}
if (lastPrintingCharIndex != -1)
builder.append(line, x1Index, lastPrintingCharIndex - x1Index + 1);
int len = lastPrintingCharIndex - x1Index + 1;
if (lastPrintingCharIndex != -1 && len > 0)
builder.append(line, x1Index, len);
if ((!joinBackLines || !rowLineWrap)
&& row < selY2 && row < mScreenRows - 1) builder.append('\n');
}