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