Skip to content

Commit

Permalink
updated for version 7.3.501
Browse files Browse the repository at this point in the history
Problem:    Error for "flush" not being defined when using Ruby command.
Solution:   Defined "flush" as a no-op method. (Kent Sibilev)
  • Loading branch information
brammool committed Apr 20, 2012
1 parent 5ae2423 commit 11cd9a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/if_ruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
501,
/**/
500,
/**/
Expand Down

0 comments on commit 11cd9a6

Please sign in to comment.