updated for version 7.0f02
diff --git a/src/normal.c b/src/normal.c
index 6512574..966bb32 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -3209,9 +3209,7 @@
 	clear_showcmd();
 #endif
 
-    /* Don't leave the cursor past the end of the line */
-    if (curwin->w_cursor.col > 0 && *ml_get_cursor() == NUL)
-	--curwin->w_cursor.col;
+    adjust_cursor_eol();
 }
 
 /*