summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/base/colors.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/base/colors.lua b/xmake/core/base/colors.lua
index 22cfad4e3..752316b17 100644
--- a/xmake/core/base/colors.lua
+++ b/xmake/core/base/colors.lua
@@ -337,6 +337,8 @@ function colors.translate(str, opt)
-- unknown code, regard as plain text
table.insert(text_buffer, block)
end
+ elseif not opt.ignore_unknown then
+ table.insert(text_buffer, block)
end
end