aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-19 14:53:51 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-19 14:53:51 -0400
commit74f7c875e0740c57b2a88099d1f17b659c6ce6be (patch)
tree6521dcbe199f94ccb692a58eccec354e05cecbaa
parent8430279ef4767593e9e4e472420c3354b7b225b6 (diff)
Dim the secret ellipsis
-rw-r--r--enums.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enums.c b/enums.c
index 51740549..12d53efb 100644
--- a/enums.c
+++ b/enums.c
@@ -38,7 +38,7 @@ static CORD compile_str_method(env_t *env, ast_t *ast)
def->name, ".", tag->name, "\\x1b[m(\" : \"", def->name, ".", tag->name, "(\"");
if (tag->secret) {
- str_func = CORD_cat(str_func, ", \"***)\");\n");
+ str_func = CORD_cat(str_func, ", use_color ? \"\\x1b[2m...\\x1b[m\" : \"...\", \")\");\n");
continue;
}