lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
046c959
To: vim-dev@vim.org
046c959
Subject: patch 7.1.018
046c959
Fcc: outbox
046c959
From: Bram Moolenaar <Bram@moolenaar.net>
046c959
Mime-Version: 1.0
046c959
Content-Type: text/plain; charset=ISO-8859-1
046c959
Content-Transfer-Encoding: 8bit
046c959
------------
046c959
046c959
Patch 7.1.018
046c959
Problem:    When 'virtualedit' is set a "p" of a block just past the end of
046c959
	    the line inserts before the cursor. (Engelke)
046c959
Solution:   Check for the cursor being just after the line (Chris Lubinski)
046c959
Files:	    src/ops.c
046c959
046c959
046c959
*** ../vim-7.1.017/src/ops.c	Thu May 10 20:34:55 2007
046c959
--- src/ops.c	Tue Jun 19 22:40:45 2007
046c959
***************
046c959
*** 3404,3410 ****
046c959
  
046c959
  #ifdef FEAT_VIRTUALEDIT
046c959
  	col += curwin->w_cursor.coladd;
046c959
! 	if (ve_flags == VE_ALL && curwin->w_cursor.coladd > 0)
046c959
  	{
046c959
  	    if (dir == FORWARD && c == NUL)
046c959
  		++col;
046c959
--- 3404,3412 ----
046c959
  
046c959
  #ifdef FEAT_VIRTUALEDIT
046c959
  	col += curwin->w_cursor.coladd;
046c959
! 	if (ve_flags == VE_ALL
046c959
! 		&& (curwin->w_cursor.coladd > 0
046c959
! 		    || endcol2 == curwin->w_cursor.col))
046c959
  	{
046c959
  	    if (dir == FORWARD && c == NUL)
046c959
  		++col;
046c959
*** ../vim-7.1.017/src/version.c	Thu Jun 28 21:57:08 2007
046c959
--- src/version.c	Thu Jun 28 22:12:49 2007
046c959
***************
046c959
*** 668,669 ****
046c959
--- 668,671 ----
046c959
  {   /* Add new patch number below this line */
046c959
+ /**/
046c959
+     18,
046c959
  /**/
046c959
046c959
-- 
046c959
    [clop clop]
046c959
MORTICIAN:  Who's that then?
046c959
CUSTOMER:   I don't know.
046c959
MORTICIAN:  Must be a king.
046c959
CUSTOMER:   Why?
046c959
MORTICIAN:  He hasn't got shit all over him.
046c959
                                  The Quest for the Holy Grail (Monty Python)
046c959
046c959
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
046c959
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
046c959
\\\        download, build and distribute -- http://www.A-A-P.org        ///
046c959
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///