aboutsummaryrefslogtreecommitdiff
path: root/center.c
diff options
context:
space:
mode:
Diffstat (limited to 'center.c')
-rw-r--r--center.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/center.c b/center.c
index be6d9ee..10e8130 100644
--- a/center.c
+++ b/center.c
@@ -165,7 +165,7 @@ noesclen(const char *s)
while ((d = strchr(d, ESC)) != NULL)
off += matchesc(++d);
- return utf8len(s) + off;
+ return utf8len(s) - off;
}
/* Return the length of the ANSI color escape sequence at the beginning of the string `s'. If no