Created
March 18, 2009 04:39
-
-
Save koichiro/80946 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Index: ext/readline/readline.c | |
=================================================================== | |
--- ext/readline/readline.c (revision 22951) | |
+++ ext/readline/readline.c (working copy) | |
@@ -124,6 +124,14 @@ | |
} | |
static VALUE | |
+readline_s_refresh_line(self) | |
+{ | |
+ rb_secure(4); | |
+ rl_refresh_line(0, 0); | |
+ return Qnil; | |
+} | |
+ | |
+static VALUE | |
readline_s_set_completion_proc(self, proc) | |
VALUE self; | |
VALUE proc; | |
@@ -796,6 +804,8 @@ | |
readline_s_set_filename_quote_characters, 1); | |
rb_define_singleton_method(mReadline, "filename_quote_characters", | |
readline_s_get_filename_quote_characters, 0); | |
+ rb_define_singleton_method(mReadline, "refresh_line", | |
+ readline_s_refresh_line, 0); | |
history = rb_obj_alloc(rb_cObject); | |
rb_extend_object(history, rb_mEnumerable); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment