-
-
Save headius/0f63314d16959fcd2542ced371ceda9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/org/jruby/ext/readline/Readline.java b/src/main/java/org/jruby/ext/readline/Readline.java | |
index 37ebff4..b4d0a2d 100644 | |
--- a/src/main/java/org/jruby/ext/readline/Readline.java | |
+++ b/src/main/java/org/jruby/ext/readline/Readline.java | |
@@ -102,7 +102,7 @@ public class Readline { | |
// We lazily initialize this in case Readline.readline has been overridden in ruby (s_readline) | |
protected static void initReadline(Ruby runtime, final ConsoleHolder holder) { | |
try { | |
- holder.readline = new ConsoleReader(); | |
+ holder.readline = new ConsoleReader(runtime.getInputStream(), runtime.getOutputStream()); | |
} catch (IOException ioe) { | |
throw runtime.newIOErrorFromException(ioe); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment