]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.501 v7.3.501
authorBram Moolenaar <Bram@vim.org>
Fri, 20 Apr 2012 16:05:47 +0000 (18:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 20 Apr 2012 16:05:47 +0000 (18:05 +0200)
Problem:    Error for "flush" not being defined when using Ruby command.
Solution:   Defined "flush" as a no-op method. (Kent Sibilev)

src/if_ruby.c
src/version.c

index 5dc32858be4798cc5b95c4448e2d2f0107af2d4e..3b5b93b056205169c4ddbdb0afd9a87086184aab 100644 (file)
@@ -1238,6 +1238,11 @@ static VALUE window_set_cursor(VALUE self, VALUE pos)
     return Qnil;
 }
 
+static VALUE f_nop(VALUE self)
+{
+    return Qnil;
+}
+
 static VALUE f_p(int argc, VALUE *argv, VALUE self UNUSED)
 {
     int i;
@@ -1259,6 +1264,7 @@ static void ruby_io_init(void)
 
     rb_stdout = rb_obj_alloc(rb_cObject);
     rb_define_singleton_method(rb_stdout, "write", vim_message, 1);
+    rb_define_singleton_method(rb_stdout, "flush", f_nop, 0);
     rb_define_global_function("p", f_p, -1);
 }
 
index 720e45a1afea8215875adc2e71ad9720e504d333..94d429e4ca10357ccc9edec97bb64966f5169bcf 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    501,
 /**/
     500,
 /**/