updated for version 7.4.129
Problem: getline(-1) returns zero. (mvxxc)
Solution: Return an empty string.
diff --git a/src/eval.c b/src/eval.c
index 5d8c7c8..1637e6d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -11119,6 +11119,8 @@
{
char_u *p;
+ rettv->v_type = VAR_STRING;
+ rettv->vval.v_string = NULL;
if (retlist && rettv_list_alloc(rettv) == FAIL)
return;
@@ -11131,8 +11133,6 @@
p = ml_get_buf(buf, start, FALSE);
else
p = (char_u *)"";
-
- rettv->v_type = VAR_STRING;
rettv->vval.v_string = vim_strsave(p);
}
else
diff --git a/src/version.c b/src/version.c
index 82ccc55..fbfba64 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 129,
+/**/
128,
/**/
127,