]> granicus.if.org Git - neomutt/commitdiff
Replace a ridiculous for loop by a proper calculation. Ahem.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 8 Nov 2001 00:56:23 +0000 (00:56 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 8 Nov 2001 00:56:23 +0000 (00:56 +0000)
handler.c

index 2132eea01b2001b5121da9d412b12ba19a3af9d5..100597275fdb41e194b4a6323d49fd330adb53d7 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -950,8 +950,7 @@ static int flowed_visual_strlen (char *l, int i)
   {
     j++;
     if (*l == '\t')
-      for (; (i + j) % 8; j++)
-       ;
+      j += 8 - ((i + j) % 8);
   }
   
   return j;