mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user