Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for #2608344: Ctrl-D to delete character when buffer is not empty

  • Loading branch information...
commit 5e6d1b17ea8242ddee026fffa566222b6b0baf04 1 parent faa159d
@headius headius authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/java/jline/ConsoleReader.java
View
5 src/main/java/jline/ConsoleReader.java
@@ -511,8 +511,11 @@ public String readLine(final String prompt, final Character mask)
if (buf.buffer.length() == 0) {
return null;
+ } else {
+ success = deleteCurrentCharacter();
}
- break;
+
+ break;
case COMPLETE: // tab
success = complete();
Please sign in to comment.
Something went wrong with that request. Please try again.