summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-12-14 12:17:38 +0100
committerBram Moolenaar <Bram@vim.org>2013-12-14 12:17:38 +0100
commit959a143f2e17d81c108b60493815419c7772aa63 (patch)
treedc7afc355b0b3cf758f57187d049fa820d31ec98 /src
parent207fd75cac7bc658da039f551620d51c422def44 (diff)
downloadvim-959a143f2e17d81c108b60493815419c7772aa63.zip
updated for version 7.4.129
Problem: getline(-1) returns zero. (mvxxc) Solution: Return an empty string.
Diffstat (limited to 'src')
-rw-r--r--src/eval.c4
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 5d8c7c8a2..1637e6d09 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -11119,6 +11119,8 @@ get_buffer_lines(buf, start, end, retlist, rettv)
{
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 @@ get_buffer_lines(buf, start, end, retlist, rettv)
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 82ccc55d4..fbfba649d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 129,
+/**/
128,
/**/
127,