Skip to content

Commit 11cd9a6

Browse files
committed
updated for version 7.3.501
Problem: Error for "flush" not being defined when using Ruby command. Solution: Defined "flush" as a no-op method. (Kent Sibilev)
1 parent 5ae2423 commit 11cd9a6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/if_ruby.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,11 @@ static VALUE window_set_cursor(VALUE self, VALUE pos)
12381238
return Qnil;
12391239
}
12401240

1241+
static VALUE f_nop(VALUE self)
1242+
{
1243+
return Qnil;
1244+
}
1245+
12411246
static VALUE f_p(int argc, VALUE *argv, VALUE self UNUSED)
12421247
{
12431248
int i;
@@ -1259,6 +1264,7 @@ static void ruby_io_init(void)
12591264

12601265
rb_stdout = rb_obj_alloc(rb_cObject);
12611266
rb_define_singleton_method(rb_stdout, "write", vim_message, 1);
1267+
rb_define_singleton_method(rb_stdout, "flush", f_nop, 0);
12621268
rb_define_global_function("p", f_p, -1);
12631269
}
12641270

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
501,
717719
/**/
718720
500,
719721
/**/

0 commit comments

Comments
 (0)