Permalink
Browse files

Avoid blowing up if nonBlockingInput is not really non-blocking

  • Loading branch information...
trptcolin committed May 26, 2012
1 parent 29bb976 commit c9d9426791544e8e2b2ac263998b3f0806d89c6d
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/jline/console/ConsoleReader.java
@@ -1600,7 +1600,10 @@ private void insertClose(String s) throws IOException {
moveCursor(-1);
viMatch();
+
+ if (nonBlockingInput.isNonBlockingEnabled()) {
nonBlockingInput.peek(parenBlinkTimeout);
+ }
setCursorPosition(closePosition);
}

0 comments on commit c9d9426

Please sign in to comment.