diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-02-18 15:53:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-02-18 15:53:29 +0100 |
commit | 83bac8b756e1778a0269a40809f0afa723962f8a (patch) | |
tree | fca3abc26b1c093cfc1a43d783a6665dd650705b /src/if_ruby.c | |
parent | 8a33e74dd2ee6681b887bd14a901601e334a1d16 (diff) | |
download | vim-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)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 2 |
1 files changed, 1 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) |