diff options
| author | ruki <[email protected]> | 2021-09-22 00:37:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-22 00:37:57 +0800 |
| commit | a4ee9d0372306ee34d3454968a0dfcb0ab91e0cf (patch) | |
| tree | d5c816897fbc1a98b5156f6d449022f4187a85be | |
| parent | 5e4fd84a4dece56d8d542c64d291036c7fb3aabd (diff) | |
fix colors.translate
| -rw-r--r-- | xmake/core/base/colors.lua | 2 |
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 |
