jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.578

073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.578
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.578
073263
Problem:    Using getcurpos() after "$" in an empty line returns a negative
073263
	    number.
073263
Solution:   Don't add one when this would overflow. (Hirohito Higashi)
073263
Files:	    src/eval.c
073263
073263
073263
*** ../vim-7.4.577/src/eval.c	2015-01-14 17:14:57.351424263 +0100
073263
--- src/eval.c	2015-01-14 18:55:46.945664363 +0100
073263
***************
073263
*** 11941,11947 ****
073263
  #endif
073263
  							      (varnumber_T)0);
073263
  	if (getcurpos)
073263
! 	    list_append_number(l, (varnumber_T)curwin->w_curswant + 1);
073263
      }
073263
      else
073263
  	rettv->vval.v_number = FALSE;
073263
--- 11941,11948 ----
073263
  #endif
073263
  							      (varnumber_T)0);
073263
  	if (getcurpos)
073263
! 	    list_append_number(l, curwin->w_curswant == MAXCOL ?
073263
! 		    (varnumber_T)MAXCOL : (varnumber_T)curwin->w_curswant + 1);
073263
      }
073263
      else
073263
  	rettv->vval.v_number = FALSE;
073263
*** ../vim-7.4.577/src/version.c	2015-01-14 18:40:23.087769463 +0100
073263
--- src/version.c	2015-01-14 18:54:47.734312885 +0100
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     578,
073263
  /**/
073263
073263
-- 
073263
From "know your smileys":
073263
 ~#:-(	I just washed my hair, and I can't do nuthin' with it.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///