Skip to content

Commit

Permalink
Fix issue #399: Nano editor fails to display long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jun 9, 2019
1 parent 9ef1cc2 commit 44f208b
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 @@ -995,12 +995,12 @@ public void run() throws IOException {

SignalHandler prevHandler = null;
try {
size.copy(terminal.getSize());
buffer.open();
if (buffer.file != null) {
setMessage("Read " + buffer.lines.size() + " lines");
}

size.copy(terminal.getSize());
display.clear();
display.reset();
display.resize(size.getRows(), size.getColumns());
Expand Down

0 comments on commit 44f208b

Please sign in to comment.