updated for version 7.2.368
Problem: Ruby interface: Appending line doesn't work. (Michael Henry)
Solution: Reverse check for NULL line. (James Vega)
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 2295fa5..6135c5d 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -869,7 +869,7 @@
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)
diff --git a/src/version.c b/src/version.c
index 3d1455f..5f1e3bd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 368,
+/**/
367,
/**/
366,