Skip to content

Commit

Permalink
Fix messe up display on windows when writing up to the last column of…
Browse files Browse the repository at this point in the history
… the window
  • Loading branch information
gnodet committed May 3, 2017
1 parent cb089d8 commit 5677904
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,7 @@ public List<AttributedString> columnSplitLength(int columns, boolean includeNewl
int cp = codePointAt(cur);
int w = isHidden(cur) ? 0 : WCWidth.wcwidth(cp);
if (cp == '\n') {
if (! delayLineWrap && col == columns) {
strings.add(subSequence(beg, cur));
strings.add(includeNewlines ? AttributedString.NEWLINE
: AttributedString.EMPTY);
}
else
strings.add(subSequence(beg, includeNewlines ? cur+1 : cur));
strings.add(subSequence(beg, includeNewlines ? cur+1 : cur));
beg = cur + 1;
col = 0;
} else if ((col += w) > columns) {
Expand Down

0 comments on commit 5677904

Please sign in to comment.