diff src/misc1.c @ 1348:17a83c0532e8 v7.1.062

updated for version 7.1-062
author vimboss
date Sat, 11 Aug 2007 12:32:57 +0000
parents 2ae2dd2591fa
children a66a49322b6b
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -222,7 +222,10 @@ set_indent(size, flags)
 	 * 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
     {