diff src/ops.c @ 1304:33792c36e3aa v7.1.018

updated for version 7.1-018
author vimboss
date Thu, 28 Jun 2007 20:18:51 +0000
parents 82274b284600
children 27782797c331
line wrap: on
line diff
--- a/src/ops.c
+++ b/src/ops.c
@@ -3404,7 +3404,9 @@ do_put(regname, dir, count, flags)
 
 #ifdef FEAT_VIRTUALEDIT
 	col += curwin->w_cursor.coladd;
-	if (ve_flags == VE_ALL && curwin->w_cursor.coladd > 0)
+	if (ve_flags == VE_ALL
+		&& (curwin->w_cursor.coladd > 0
+		    || endcol2 == curwin->w_cursor.col))
 	{
 	    if (dir == FORWARD && c == NUL)
 		++col;