summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-04-20 18:05:47 +0200
committerBram Moolenaar <Bram@vim.org>2012-04-20 18:05:47 +0200
commit35df7d2d99823124e0001e023ff1e2764cfb5937 (patch)
treefc8b6496aa735a5c0334760ea7b6f9d531f53aa6
parenta6cdc99152c3a3e3bd92ac33864dafd15bb4d938 (diff)
downloadvim-git-35df7d2d99823124e0001e023ff1e2764cfb5937.tar.gz
updated for version 7.3.501v7.3.501
Problem: Error for "flush" not being defined when using Ruby command. Solution: Defined "flush" as a no-op method. (Kent Sibilev)
-rw-r--r--src/if_ruby.c6
-rw-r--r--src/version.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 5dc32858b..3b5b93b05 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -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);
}
diff --git a/src/version.c b/src/version.c
index 720e45a1a..94d429e4c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 501,
+/**/
500,
/**/
499,