From 4c3fe2981d4b3caf5375344a4c29020fe492abea Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 8 Nov 2001 00:56:23 +0000 Subject: [PATCH] Replace a ridiculous for loop by a proper calculation. Ahem. --- handler.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handler.c b/handler.c index 2132eea0..10059727 100644 --- 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; -- 2.40.0