33c606d
To: vim-dev@vim.org
33c606d
Subject: Patch 7.2.368
33c606d
Fcc: outbox
33c606d
From: Bram Moolenaar <Bram@moolenaar.net>
33c606d
Mime-Version: 1.0
33c606d
Content-Type: text/plain; charset=UTF-8
33c606d
Content-Transfer-Encoding: 8bit
33c606d
------------
33c606d
33c606d
Patch 7.2.368 (after 7.2.361)
33c606d
Problem:    Ruby interface: Appending line doesn't work. (Michael Henry)
33c606d
Solution:   Reverse check for NULL line. (James Vega)
33c606d
Files:      src/if_ruby.c
33c606d
33c606d
33c606d
*** ../vim-7.2.367/src/if_ruby.c	2010-02-17 16:23:03.000000000 +0100
33c606d
--- src/if_ruby.c	2010-02-18 15:47:42.000000000 +0100
33c606d
***************
33c606d
*** 869,875 ****
33c606d
      long	n = NUM2LONG(num);
33c606d
      aco_save_T	aco;
33c606d
  
33c606d
!     if (line != NULL) {
33c606d
  	rb_raise(rb_eIndexError, "NULL line");
33c606d
      }
33c606d
      else if (n >= 0 && n <= buf->b_ml.ml_line_count)
33c606d
--- 869,875 ----
33c606d
      long	n = NUM2LONG(num);
33c606d
      aco_save_T	aco;
33c606d
  
33c606d
!     if (line == NULL) {
33c606d
  	rb_raise(rb_eIndexError, "NULL line");
33c606d
      }
33c606d
      else if (n >= 0 && n <= buf->b_ml.ml_line_count)
33c606d
*** ../vim-7.2.367/src/version.c	2010-02-17 18:28:06.000000000 +0100
33c606d
--- src/version.c	2010-02-18 15:48:09.000000000 +0100
33c606d
***************
33c606d
*** 683,684 ****
33c606d
--- 683,686 ----
33c606d
  {   /* Add new patch number below this line */
33c606d
+ /**/
33c606d
+     368,
33c606d
  /**/
33c606d
33c606d
-- 
33c606d
hundred-and-one symptoms of being an internet addict:
33c606d
251. You've never seen your closest friends who usually live WAY too far away.
33c606d
33c606d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
33c606d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
33c606d
\\\        download, build and distribute -- http://www.A-A-P.org        ///
33c606d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///