summaryrefslogblamecommitdiff
path: root/system/ruby/libedit-compat.patch
blob: 601a9feeaec074189d37375282d8af272ea99efb (plain) (tree)





















                                                                                   
--- 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
@@ -571,6 +571,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;
@@ -607,6 +610,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;