]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.368 v7.2.368
authorBram Moolenaar <Bram@vim.org>
Thu, 18 Feb 2010 14:53:29 +0000 (15:53 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 18 Feb 2010 14:53:29 +0000 (15:53 +0100)
Problem:    Ruby interface: Appending line doesn't work. (Michael Henry)
Solution:   Reverse check for NULL line. (James Vega)

src/if_ruby.c
src/version.c

index 2295fa5b1cf7c82dd903cf97b1e86604b48b18b6..6135c5d5b3470e5d2e408baa70684cd5dc05bf20 100644 (file)
@@ -869,7 +869,7 @@ static VALUE buffer_append(VALUE self, VALUE num, VALUE str)
     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)
index 3d1455f11ef6780293adc5ffa6bfd525cefb7b16..5f1e3bd26b96fa7da079cb0c2d9a9caf79a0952c 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    368,
 /**/
     367,
 /**/