1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Error for "flush" not being defined when using Ruby command.
12 Solution: Defined "flush" as a no-op method. (Kent Sibilev)
16 *** ../vim-7.3.500/src/if_ruby.c 2011-08-04 19:34:55.000000000 +0200
17 --- src/if_ruby.c 2012-04-20 16:18:56.000000000 +0200
24 + static VALUE f_nop(VALUE self)
29 static VALUE f_p(int argc, VALUE *argv, VALUE self UNUSED)
36 rb_stdout = rb_obj_alloc(rb_cObject);
37 rb_define_singleton_method(rb_stdout, "write", vim_message, 1);
38 + rb_define_singleton_method(rb_stdout, "flush", f_nop, 0);
39 rb_define_global_function("p", f_p, -1);
42 *** ../vim-7.3.500/src/version.c 2012-04-20 16:13:21.000000000 +0200
43 --- src/version.c 2012-04-20 16:19:03.000000000 +0200
47 { /* Add new patch number below this line */
53 Q: What do you call a fish without an eye?
55 Q: What do you call a deer with no eyes?
57 Q: What do you call a deer with no eyes and no legs?
60 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
61 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
62 \\\ an exciting new programming language -- http://www.Zimbu.org ///
63 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///