Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed the CTRL-D issue

If the buffer is empty, CTRL-D exits, if not,
it deletes the next character.

Also fixed it for the DELETE key.
  • Loading branch information...
commit af73cc5480db8e8c9830b4708668519986821af0 1 parent 1e6c957
Mikio L. Braun authored hns committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/main/java/jline/ConsoleReader.java
View
3  src/main/java/jline/ConsoleReader.java
@@ -565,6 +565,9 @@ public String readLine(final String prompt, final Character mask)
if (buf.buffer.length() == 0) {
return null;
}
+ else {
+ success = deleteCurrentCharacter();
+ }
break;
case COMPLETE: // tab
Please sign in to comment.
Something went wrong with that request. Please try again.