updated for version 7.1-062
diff --git a/src/misc1.c b/src/misc1.c
index be2c244..d950504 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -222,7 +222,10 @@
 	 * than old) */
 	while (vim_iswhite(*p))
 	    (void)*p++;
-	todo = size-ind_done;
+	todo = size - ind_done;
+	ind_len += todo;    /* Set total length of indent in characters,
+			     * which may have been undercounted until now  */
+
     }
     else
     {