Skip to content

Commit

Permalink
Use scrolling when displaying enough lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed May 3, 2017
1 parent 6f11851 commit e49862a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminal/src/main/java/org/jline/utils/Display.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void update(List<AttributedString> newLines, int targetCursorPos) {
}

// Detect scrolling
if (fullScreen && newLines.size() == oldLines.size() && canScroll) {
if ((fullScreen || newLines.size() >= rows) && newLines.size() == oldLines.size() && canScroll) {
int nbHeaders = 0;
int nbFooters = 0;
// Find common headers and footers
Expand Down

0 comments on commit e49862a

Please sign in to comment.