Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Dec 10, 2024
1 parent ddd1c7d commit 451de9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtins/src/main/java/org/jline/builtins/Less.java
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ private void addFile() throws IOException, InterruptedException {
while (true) {
checkInterrupted();
Operation op = bindingReader.readBinding(fileKeyMap);
if (Objects.requireNonNull(op) == Operation.ACCEPT) {
if (op == Operation.ACCEPT) {
String name = buffer.substring(begPos);
addSource(name);
try {
Expand All @@ -849,7 +849,7 @@ private void addFile() throws IOException, InterruptedException {
ssp.restore(name);
}
return;
} else {
} else if (op != null) {
curPos = lineEditor.editBuffer(op, curPos);
}
if (curPos > begPos) {
Expand Down

0 comments on commit 451de9c

Please sign in to comment.