jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.129

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