|
|
3ef2ca |
To: vim_dev@googlegroups.com
|
|
|
3ef2ca |
Subject: Patch 7.4.129
|
|
|
3ef2ca |
Fcc: outbox
|
|
|
3ef2ca |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
3ef2ca |
Mime-Version: 1.0
|
|
|
3ef2ca |
Content-Type: text/plain; charset=UTF-8
|
|
|
3ef2ca |
Content-Transfer-Encoding: 8bit
|
|
|
3ef2ca |
------------
|
|
|
3ef2ca |
|
|
|
3ef2ca |
Patch 7.4.129
|
|
|
3ef2ca |
Problem: getline(-1) returns zero. (mvxxc)
|
|
|
3ef2ca |
Solution: Return an empty string.
|
|
|
3ef2ca |
Files: src/eval.c
|
|
|
3ef2ca |
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.128/src/eval.c 2013-11-11 04:25:48.000000000 +0100
|
|
|
3ef2ca |
--- src/eval.c 2013-12-14 12:11:27.000000000 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 11119,11124 ****
|
|
|
3ef2ca |
--- 11119,11126 ----
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
char_u *p;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
+ rettv->v_type = VAR_STRING;
|
|
|
3ef2ca |
+ rettv->vval.v_string = NULL;
|
|
|
3ef2ca |
if (retlist && rettv_list_alloc(rettv) == FAIL)
|
|
|
3ef2ca |
return;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 11131,11138 ****
|
|
|
3ef2ca |
p = ml_get_buf(buf, start, FALSE);
|
|
|
3ef2ca |
else
|
|
|
3ef2ca |
p = (char_u *)"";
|
|
|
3ef2ca |
-
|
|
|
3ef2ca |
- rettv->v_type = VAR_STRING;
|
|
|
3ef2ca |
rettv->vval.v_string = vim_strsave(p);
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
else
|
|
|
3ef2ca |
--- 11133,11138 ----
|
|
|
3ef2ca |
*** ../vim-7.4.128/src/version.c 2013-12-14 11:50:28.000000000 +0100
|
|
|
3ef2ca |
--- src/version.c 2013-12-14 12:13:32.000000000 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 740,741 ****
|
|
|
3ef2ca |
--- 740,743 ----
|
|
|
3ef2ca |
{ /* Add new patch number below this line */
|
|
|
3ef2ca |
+ /**/
|
|
|
3ef2ca |
+ 129,
|
|
|
3ef2ca |
/**/
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--
|
|
|
3ef2ca |
Keyboard not found. Think ENTER to continue.
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
3ef2ca |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
3ef2ca |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
3ef2ca |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|