diff src/ops.c @ 555:a5efb97bc104

updated for version 7.0157
author vimboss
date Wed, 12 Oct 2005 20:58:49 +0000
parents 339999b511a0
children 862863033fdd
line wrap: on
line diff
--- a/src/ops.c
+++ b/src/ops.c
@@ -3724,10 +3724,13 @@ end:
 	    && curwin->w_cursor.col > 0
 	    && !(restart_edit || (State & INSERT)))
     {
-	--curwin->w_cursor.col;
+#ifdef FEAT_VIRTUALEDIT
+	col = curwin->w_cursor.col;
+#endif
+	dec_cursor();
 #ifdef FEAT_VIRTUALEDIT
 	if (ve_flags == VE_ALL)
-	    ++curwin->w_cursor.coladd;
+	    curwin->w_cursor.coladd = col - curwin->w_cursor.col;
 #endif
     }
 }