Skip to content

Commit

Permalink
fixed incorrect implementation in case of ansi.strip
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Apr 14, 2018
1 parent 2142202 commit 0728c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jansi/src/main/java/org/fusesource/jansi/AnsiPrintStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ protected void processCursorUpLine(int count) throws IOException {
protected void processCursorDownLine(int count) throws IOException {
// Poor mans impl..
for (int i = 0; i < count; i++) {
print('\n'); // expected diff with AnsiOutputStream.java
ps.write('\n'); // expected diff with AnsiOutputStream.java
}
}

Expand All @@ -694,7 +694,7 @@ protected void processCursorLeft(int count) throws IOException {
protected void processCursorRight(int count) throws IOException {
// Poor mans impl..
for (int i = 0; i < count; i++) {
print(' '); // expected diff with AnsiOutputStream.java
ps.write(' '); // expected diff with AnsiOutputStream.java
}
}

Expand Down

0 comments on commit 0728c6d

Please sign in to comment.