| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.501 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| 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 |
| |
| |
| |
| |
| |
| *** 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); |
| } |
| |
| |
| |
| |
| *** 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 -- Bram@Moolenaar.net -- 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 /// |