summary refs log tree commit diff
path: root/bin/hilex/hilex.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hilex/hilex.c')
-rw-r--r--bin/hilex/hilex.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/hilex/hilex.c b/bin/hilex/hilex.c
index 43130f4d..8b824bcd 100644
--- a/bin/hilex/hilex.c
+++ b/bin/hilex/hilex.c
@@ -82,9 +82,13 @@ static const char *ClassName[] = {
 
 static void
 debugFormat(const char *opts[], enum Class class, const char *text) {
-	printf("%s(\33[3m", ClassName[class]);
-	FormatANSI.format(opts, class, text);
-	printf("\33[m)");
+	if (class != Normal) {
+		printf("%s(", ClassName[class]);
+		FormatANSI.format(opts, class, text);
+		printf(")");
+	} else {
+		printf("%s", text);
+	}
 }
 
 const struct Formatter FormatDebug = { .format = debugFormat };