diff options
author | Bram Moolenaar <bram@vim.org> | 2013-12-14 12:17:38 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2013-12-14 12:17:38 +0100 |
commit | 65dd0f76a3889cafa3ef28164e14f9a24e755c4a (patch) | |
tree | f3c21df2a819217fba204ee0f545b801b9da7678 | |
parent | 11b2204af69f2510a8c24f2204123add85bb6e72 (diff) | |
download | vim-7-4-129.tar.gz |
Problem: getline(-1) returns zero. (mvxxc)
Solution: Return an empty string.
-rw-r--r-- | src/eval.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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 82ccc55d..fbfba649 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, |