mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.4.129
Problem: getline(-1) returns zero. (mvxxc) Solution: Return an empty string.
This commit is contained in:
@@ -11119,6 +11119,8 @@ get_buffer_lines(buf, start, end, retlist, rettv)
|
|||||||
{
|
{
|
||||||
char_u *p;
|
char_u *p;
|
||||||
|
|
||||||
|
rettv->v_type = VAR_STRING;
|
||||||
|
rettv->vval.v_string = NULL;
|
||||||
if (retlist && rettv_list_alloc(rettv) == FAIL)
|
if (retlist && rettv_list_alloc(rettv) == FAIL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -11131,8 +11133,6 @@ get_buffer_lines(buf, start, end, retlist, rettv)
|
|||||||
p = ml_get_buf(buf, start, FALSE);
|
p = ml_get_buf(buf, start, FALSE);
|
||||||
else
|
else
|
||||||
p = (char_u *)"";
|
p = (char_u *)"";
|
||||||
|
|
||||||
rettv->v_type = VAR_STRING;
|
|
||||||
rettv->vval.v_string = vim_strsave(p);
|
rettv->vval.v_string = vim_strsave(p);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -738,6 +738,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 */
|
||||||
|
/**/
|
||||||
|
129,
|
||||||
/**/
|
/**/
|
||||||
128,
|
128,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user