Skip to content

Instantly share code, notes, and snippets.

@headius

headius/.diff Secret

Created August 16, 2016 20:48
Show Gist options
  • Save headius/0f63314d16959fcd2542ced371ceda9c to your computer and use it in GitHub Desktop.
Save headius/0f63314d16959fcd2542ced371ceda9c to your computer and use it in GitHub Desktop.
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