changeset 2084:4bac7ed34007 v7.2.368

updated for version 7.2.368 Problem: Ruby interface: Appending line doesn't work. (Michael Henry) Solution: Reverse check for NULL line. (James Vega)
author Bram Moolenaar <bram@zimbu.org>
date Thu, 18 Feb 2010 15:53:29 +0100
parents 24eb7921b8f0
children 5a84b6388a55
files src/if_ruby.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -869,7 +869,7 @@ static VALUE buffer_append(VALUE self, V
     long	n = NUM2LONG(num);
     aco_save_T	aco;
 
-    if (line != NULL) {
+    if (line == NULL) {
 	rb_raise(rb_eIndexError, "NULL line");
     }
     else if (n >= 0 && n <= buf->b_ml.ml_line_count)
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    368,
+/**/
     367,
 /**/
     366,