Skip to content

Commit

Permalink
nano command: restored computeFooter() broke in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jul 28, 2019
1 parent 490b623 commit 32a44aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,7 @@ protected List<AttributedString> computeFooter() {
}
sb.append('\n');
footer.add(sb.toAttributedString());
} else if (constantCursor) {
} else if (message!= null || constantCursor) {
int rwidth = size.getColumns();
String text = "[ " + (message == null ? computeCurPos() : message) + " ]";
int len = text.length();
Expand Down

0 comments on commit 32a44aa

Please sign in to comment.