Problem: Error for "flush" not being defined when using Ruby command.
Solution: Defined "flush" as a no-op method. (Kent Sibilev)
return Qnil;
}
+static VALUE f_nop(VALUE self)
+{
+ return Qnil;
+}
+
static VALUE f_p(int argc, VALUE *argv, VALUE self UNUSED)
{
int i;
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);
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 501,
/**/
500,
/**/