0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.4.129

Problem:    getline(-1) returns zero. (mvxxc)
Solution:   Return an empty string.
This commit is contained in:
Bram Moolenaar
2013-12-14 12:17:38 +01:00
parent 207fd75cac
commit 959a143f2e
2 changed files with 4 additions and 2 deletions

View 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