aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-03 23:55:11 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-03 23:55:11 -0400
commitfbb7bee68b1323508bdbfff2da33050b4a4f95d2 (patch)
tree7f4033c8855e668999a867b4efa0cf379b1befa0
parent805082d2990c780328bef7d0d8ebc5601ef02eb1 (diff)
Don't bold DSL text
-rw-r--r--builtins/text.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/builtins/text.c b/builtins/text.c
index 11c5610e..2864f3a8 100644
--- a/builtins/text.c
+++ b/builtins/text.c
@@ -1507,7 +1507,11 @@ public Text_t Text$as_text(const void *text, bool colorize, const TypeInfo *info
if (!text) return info && info->TextInfo.lang ? Text$from_str(info->TextInfo.lang) : Text("Text");
Text_t as_text = _quoted(*(Text_t*)text, colorize, info == &Pattern ? '/' : '"');
if (info && info->TextInfo.lang && info != &$Text && info != &Pattern)
- as_text = Text$concat(colorize ? Text("\x1b[1m$") : Text("$"), Text$from_str(info->TextInfo.lang), as_text);
+ as_text = Text$concat(
+ colorize ? Text("\x1b[1m$") : Text("$"),
+ Text$from_str(info->TextInfo.lang),
+ colorize ? Text("\x1b[0m") : Text(""),
+ as_text);
return as_text;
}