Karsten Hopp b1ba9e
To: vim_dev@googlegroups.com
Karsten Hopp b1ba9e
Subject: Patch 7.3.501
Karsten Hopp b1ba9e
Fcc: outbox
Karsten Hopp b1ba9e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b1ba9e
Mime-Version: 1.0
Karsten Hopp b1ba9e
Content-Type: text/plain; charset=UTF-8
Karsten Hopp b1ba9e
Content-Transfer-Encoding: 8bit
Karsten Hopp b1ba9e
------------
Karsten Hopp b1ba9e
Karsten Hopp b1ba9e
Patch 7.3.501
Karsten Hopp b1ba9e
Problem:    Error for "flush" not being defined when using Ruby command.
Karsten Hopp b1ba9e
Solution:   Defined "flush" as a no-op method. (Kent Sibilev)
Karsten Hopp b1ba9e
Files:	    src/if_ruby.c
Karsten Hopp b1ba9e
Karsten Hopp b1ba9e
Karsten Hopp b1ba9e
*** ../vim-7.3.500/src/if_ruby.c	2011-08-04 19:34:55.000000000 +0200
Karsten Hopp b1ba9e
--- src/if_ruby.c	2012-04-20 16:18:56.000000000 +0200
Karsten Hopp b1ba9e
***************
Karsten Hopp b1ba9e
*** 1238,1243 ****
Karsten Hopp b1ba9e
--- 1238,1248 ----
Karsten Hopp b1ba9e
      return Qnil;
Karsten Hopp b1ba9e
  }
Karsten Hopp b1ba9e
  
Karsten Hopp b1ba9e
+ static VALUE f_nop(VALUE self)
Karsten Hopp b1ba9e
+ {
Karsten Hopp b1ba9e
+     return Qnil;
Karsten Hopp b1ba9e
+ }
Karsten Hopp b1ba9e
+ 
Karsten Hopp b1ba9e
  static VALUE f_p(int argc, VALUE *argv, VALUE self UNUSED)
Karsten Hopp b1ba9e
  {
Karsten Hopp b1ba9e
      int i;
Karsten Hopp b1ba9e
***************
Karsten Hopp b1ba9e
*** 1259,1264 ****
Karsten Hopp b1ba9e
--- 1264,1270 ----
Karsten Hopp b1ba9e
  
Karsten Hopp b1ba9e
      rb_stdout = rb_obj_alloc(rb_cObject);
Karsten Hopp b1ba9e
      rb_define_singleton_method(rb_stdout, "write", vim_message, 1);
Karsten Hopp b1ba9e
+     rb_define_singleton_method(rb_stdout, "flush", f_nop, 0);
Karsten Hopp b1ba9e
      rb_define_global_function("p", f_p, -1);
Karsten Hopp b1ba9e
  }
Karsten Hopp b1ba9e
  
Karsten Hopp b1ba9e
*** ../vim-7.3.500/src/version.c	2012-04-20 16:13:21.000000000 +0200
Karsten Hopp b1ba9e
--- src/version.c	2012-04-20 16:19:03.000000000 +0200
Karsten Hopp b1ba9e
***************
Karsten Hopp b1ba9e
*** 716,717 ****
Karsten Hopp b1ba9e
--- 716,719 ----
Karsten Hopp b1ba9e
  {   /* Add new patch number below this line */
Karsten Hopp b1ba9e
+ /**/
Karsten Hopp b1ba9e
+     501,
Karsten Hopp b1ba9e
  /**/
Karsten Hopp b1ba9e
Karsten Hopp b1ba9e
-- 
Karsten Hopp b1ba9e
Q: What do you call a fish without an eye?
Karsten Hopp b1ba9e
A: fsh!
Karsten Hopp b1ba9e
Q: What do you call a deer with no eyes?
Karsten Hopp b1ba9e
A: no eye deer.
Karsten Hopp b1ba9e
Q: What do you call a deer with no eyes and no legs?
Karsten Hopp b1ba9e
A: still no eye deer.
Karsten Hopp b1ba9e
Karsten Hopp b1ba9e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b1ba9e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b1ba9e
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp b1ba9e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///