Skip to content

Commit

Permalink
Status bug fix: status border is lost after window resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Oct 15, 2019
1 parent eeff0fb commit 21546f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion terminal/src/main/java/org/jline/utils/Status.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public Status(AbstractTerminal terminal) {
}

public void setBorder(boolean border) {
clear();
this.border = border ? 1 : 0;
}

Expand All @@ -79,7 +78,9 @@ public void hardReset() {
return;
}
List<AttributedString> lines = new ArrayList<>(oldLines);
int b = border;
update(null);
border = b;
update(lines);
}

Expand Down Expand Up @@ -166,7 +167,9 @@ public void suspend() {
return;
}
linesToRestore = new ArrayList<>(oldLines);
int b = border;
update(null);
border = b;
suspended = true;
}

Expand Down

0 comments on commit 21546f9

Please sign in to comment.