astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
660970a
To: vim_dev@googlegroups.com
660970a
Subject: Patch 7.4.514
660970a
Fcc: outbox
660970a
From: Bram Moolenaar <Bram@moolenaar.net>
660970a
Mime-Version: 1.0
660970a
Content-Type: text/plain; charset=UTF-8
660970a
Content-Transfer-Encoding: 8bit
660970a
------------
660970a
660970a
Patch 7.4.514 (after 7.4.492)
660970a
Problem:    Memory access error. (Dominique Pelle)
660970a
Solution:   Update tpos. (Christian Brabandt)
660970a
Files:	    src/edit.c
660970a
660970a
660970a
*** ../vim-7.4.513/src/edit.c	2014-10-31 19:20:30.782742928 +0100
660970a
--- src/edit.c	2014-11-12 18:53:10.890098796 +0100
660970a
***************
660970a
*** 6918,6923 ****
660970a
--- 6918,6925 ----
660970a
  		curwin->w_cursor = tpos;
660970a
  	    else
660970a
  	    {
660970a
+ 		/* reset tpos, could have been invalidated in the loop above */
660970a
+ 		tpos = curwin->w_cursor;
660970a
  		tpos.col++;
660970a
  		if (cc != NUL && gchar_pos(&tpos) == NUL)
660970a
  		    ++curwin->w_cursor.col;	/* put cursor back on the NUL */
660970a
*** ../vim-7.4.513/src/version.c	2014-11-12 18:49:12.992752234 +0100
660970a
--- src/version.c	2014-11-12 18:52:50.738323726 +0100
660970a
***************
660970a
*** 743,744 ****
660970a
--- 743,746 ----
660970a
  {   /* Add new patch number below this line */
660970a
+ /**/
660970a
+     514,
660970a
  /**/
660970a
660970a
-- 
660970a
My girlfriend told me I should be more affectionate.
660970a
So I got TWO girlfriends.
660970a
660970a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
660970a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
660970a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
660970a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///