summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 31a0b94..65f4ea0 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -503,6 +503,7 @@ readline_s_set_input(VALUE self, VALUE input)
rb_sys_fail("fdopen");
}
rl_instream = f;
+ ifp->stdio_file = f;
readline_instream = input;
}
return input;
@@ -557,6 +558,7 @@ readline_s_set_output(VALUE self, VALUE output)
rb_sys_fail("fdopen");
}
rl_outstream = f;
+ ofp->stdio_file = f;
readline_outstream = output;
}
return output;