mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.2.368
Problem: Ruby interface: Appending line doesn't work. (Michael Henry) Solution: Reverse check for NULL line. (James Vega)
This commit is contained in:
@@ -869,7 +869,7 @@ static VALUE buffer_append(VALUE self, VALUE num, VALUE str)
|
|||||||
long n = NUM2LONG(num);
|
long n = NUM2LONG(num);
|
||||||
aco_save_T aco;
|
aco_save_T aco;
|
||||||
|
|
||||||
if (line != NULL) {
|
if (line == NULL) {
|
||||||
rb_raise(rb_eIndexError, "NULL line");
|
rb_raise(rb_eIndexError, "NULL line");
|
||||||
}
|
}
|
||||||
else if (n >= 0 && n <= buf->b_ml.ml_line_count)
|
else if (n >= 0 && n <= buf->b_ml.ml_line_count)
|
||||||
|
@@ -681,6 +681,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
368,
|
||||||
/**/
|
/**/
|
||||||
367,
|
367,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user