]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.129 v7.4.129
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Dec 2013 11:17:38 +0000 (12:17 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Dec 2013 11:17:38 +0000 (12:17 +0100)
Problem:    getline(-1) returns zero. (mvxxc)
Solution:   Return an empty string.

src/eval.c
src/version.c

index 5d8c7c8a2a8942678ed89e03a69c44ef9428a69e..1637e6d09e5788c8c5becc5ca54574311fcf01b2 100644 (file)
@@ -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
index 82ccc55d4982045b6b08ef326ad603313c2a800a..fbfba649d7ff5c75b41294e4c1d5df45c5d539e6 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    129,
 /**/
     128,
 /**/