Skip to content

Commit

Permalink
The status gets created unwillingly, also fixes #403
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jul 4, 2019
1 parent be2dbb9 commit 2fc0d90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3737,8 +3737,8 @@ protected void redisplay(boolean flush) {
}
}

List<AttributedString> newLinesToDisplay = new ArrayList<>();
int displaySize = size.getRows() - Status.getStatus(terminal).size();
List<AttributedString> newLinesToDisplay = new ArrayList<>();
int displaySize = size.getRows() - (status != null ? status.size() : 0);
if (newLines.size() > displaySize) {
StringBuilder sb = new StringBuilder(">....");
// blanks are needed when displaying command completion candidate list
Expand Down

0 comments on commit 2fc0d90

Please sign in to comment.