summaryrefslogtreecommitdiff
path: root/xmake/core/base/dump.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-13 22:50:28 +0800
committerOpportunityLiu <[email protected]>2019-07-14 00:04:53 +0800
commitd5489da5f95a1ce5a39c3a40d5ef77729cbb6e1f (patch)
treee06d7a5836d236c936e1dc30a82be25274cda84d /xmake/core/base/dump.lua
parent6f49281f6397fbb876ea9f88a72fe47da36af89d (diff)
use emoji name
Diffstat (limited to 'xmake/core/base/dump.lua')
-rw-r--r--xmake/core/base/dump.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/core/base/dump.lua b/xmake/core/base/dump.lua
index 42f09e2c6..4cf76f115 100644
--- a/xmake/core/base/dump.lua
+++ b/xmake/core/base/dump.lua
@@ -28,8 +28,11 @@ local table = require("base/table")
-- format string with theme colors
function dump._format(fmtkey, fmtdefault, ...)
local theme = colors.theme()
- local fmt = theme and theme:get(fmtkey) or fmtdefault
- return string.format(fmt, ...)
+ if theme then
+ return colors.translate(string.format(theme:get(fmtkey), ...))
+ else
+ return string.format(fmtdefault, ...)
+ end
end
function dump._translate(str)