Skip to content

Commit

Permalink
Jline Nano unresponsive upon line overflow, fixes #120
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 28, 2017
1 parent ab41b43 commit 43b443b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions builtins/src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class Nano {
// Configuration
public String title = "JLine Nano 3.0.0";
public boolean printLineNumbers = true;
public boolean wrapping;
public boolean wrapping = true;
public boolean smoothScrolling = true;
public boolean mouseSupport = false;
public boolean oneMoreLine = true;
Expand Down Expand Up @@ -141,7 +141,7 @@ protected class Buffer {

boolean dirty;

Buffer(String file) {
protected Buffer(String file) {
this.file = file;
}

Expand Down Expand Up @@ -2015,7 +2015,8 @@ protected void bindKeys() {
keys.bind(Operation.SMART_HOME_KEY, alt('h'));
keys.bind(Operation.AUTO_INDENT, alt('i'));
keys.bind(Operation.CUT_TO_END_TOGGLE, alt('k'));
keys.bind(Operation.WRAP, alt('l'));
// TODO: reenable wrapping after fixing #120
// keys.bind(Operation.WRAP, alt('l'));
keys.bind(Operation.TABS_TO_SPACE, alt('q'));

keys.bind(Operation.BACKUP, alt('b'));
Expand Down

0 comments on commit 43b443b

Please # to comment.