commit | 83bac8b756e1778a0269a40809f0afa723962f8a | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Feb 18 15:53:29 2010 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Feb 18 15:53:29 2010 +0100 |
tree | fca3abc26b1c093cfc1a43d783a6665dd650705b | |
parent | 8a33e74dd2ee6681b887bd14a901601e334a1d16 [diff] [blame] |
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)