Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 21, 2016
1 parent dc467f4 commit d863394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/jline/builtins/Less.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,16 @@ else if (buffer.length() > 0 && (buffer.charAt(0) == '/' || buffer.charAt(0) ==
// Command reading
//
else {
Object obj = bindingReader.readBinding(keys, null, false);
Operation obj = bindingReader.readBinding(keys, null, false);
if (obj == Operation.CHAR) {
char c = bindingReader.getLastBinding().charAt(0);
// Enter option mode or pattern edit mode
if (c == '-' || c == '/' || c == '?') {
buffer.setLength(0);
}
buffer.append(c);
} else if (obj instanceof Operation) {
op = (Operation) obj;
} else {
op = obj;
}
}
if (op != null) {
Expand Down

0 comments on commit d863394

Please sign in to comment.