Patch 7.3.501
Problem: Error for "flush" not being defined when using Ruby command.
Solution: Defined "flush" as a no-op method. (Kent Sibilev)
Files: src/if_ruby.c
*** ../vim-7.3.500/src/if_ruby.c 2011-08-04 19:34:55.000000000 +0200
--- src/if_ruby.c 2012-04-20 16:18:56.000000000 +0200
***************
*** 1238,1243 ****
--- 1238,1248 ----
return Qnil;
}
+ static VALUE f_nop(VALUE self)
+ {
+ return Qnil;
+ }
+
static VALUE f_p(int argc, VALUE *argv, VALUE self UNUSED)
{
int i;
***************
*** 1259,1264 ****
--- 1264,1270 ----
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);
}
*** ../vim-7.3.500/src/version.c 2012-04-20 16:13:21.000000000 +0200
--- src/version.c 2012-04-20 16:19:03.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
{ /* Add new patch number below this line */
+ /**/
+ 501,
/**/
--
Q: What do you call a fish without an eye?
A: fsh!
Q: What do you call a deer with no eyes?
A: no eye deer.
Q: What do you call a deer with no eyes and no legs?
A: still no eye deer.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php