Skip to content

Commit

Permalink
Fix for #2608344: Ctrl-D to delete character when buffer is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed May 13, 2010
1 parent faa159d commit 5e6d1b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/jline/ConsoleReader.java
Expand Up @@ -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();
Expand Down

0 comments on commit 5e6d1b1

Please sign in to comment.