blob: 670b16dc8d408887203c20ea2d44ab2fd38f7115 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- ruby-2.5.5/ext/readline/readline.c.old 2017-09-30 08:35:23.000000000 +0000
+++ ruby-2.5.5/ext/readline/readline.c 2019-09-09 06:12:00.300098741 +0000
@@ -572,6 +572,9 @@
rb_syserr_fail(save_errno, "fdopen");
}
rl_instream = readline_rl_instream = f;
+#ifdef HAVE_EDITLINE_READLINE_H
+ rl_initialize();
+#endif
readline_instream = input;
}
return input;
@@ -608,6 +611,9 @@
rb_syserr_fail(save_errno, "fdopen");
}
rl_outstream = readline_rl_outstream = f;
+#ifdef HAVE_EDITLINE_READLINE_H
+ rl_initialize();
+#endif
readline_outstream = output;
}
return output;
|