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