diff options
| author | OpportunityLiu <[email protected]> | 2019-07-13 22:50:28 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-14 00:04:53 +0800 |
| commit | d5489da5f95a1ce5a39c3a40d5ef77729cbb6e1f (patch) | |
| tree | e06d7a5836d236c936e1dc30a82be25274cda84d /xmake/core/base/dump.lua | |
| parent | 6f49281f6397fbb876ea9f88a72fe47da36af89d (diff) | |
use emoji name
Diffstat (limited to 'xmake/core/base/dump.lua')
| -rw-r--r-- | xmake/core/base/dump.lua | 7 |
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) |
