summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-02-18 15:53:29 +0100
committerBram Moolenaar <Bram@vim.org>2010-02-18 15:53:29 +0100
commit83bac8b756e1778a0269a40809f0afa723962f8a (patch)
treefca3abc26b1c093cfc1a43d783a6665dd650705b
parent8a33e74dd2ee6681b887bd14a901601e334a1d16 (diff)
downloadvim-git-83bac8b756e1778a0269a40809f0afa723962f8a.tar.gz
updated for version 7.2.368v7.2.368
Problem: Ruby interface: Appending line doesn't work. (Michael Henry) Solution: Reverse check for NULL line. (James Vega)
-rw-r--r--src/if_ruby.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 2295fa5b1..6135c5d5b 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -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)
diff --git a/src/version.c b/src/version.c
index 3d1455f11..5f1e3bd26 100644
--- 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,