Skip to content

Commit

Permalink
Make sure we have a character left on the end footer lines to avoid a…
Browse files Browse the repository at this point in the history
… scroll down on the very last character
  • Loading branch information
gnodet committed Nov 21, 2016
1 parent 99939b3 commit dc467f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -1804,8 +1804,8 @@ protected List<AttributedString> computeFooter() {

Iterator<Entry<String, String>> sit = shortcuts.entrySet().iterator();
int cols = (shortcuts.size() + 1) / 2;
int cw = size.getColumns() / cols;
int rem = size.getColumns() % cols;
int cw = (size.getColumns() - 1) / cols;
int rem = (size.getColumns() - 1) % cols;
for (int l = 0; l < 2; l++) {
AttributedStringBuilder sb = new AttributedStringBuilder();
for (int c = 0; c < cols; c++) {
Expand Down

0 comments on commit dc467f4

Please sign in to comment.