summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-29 23:40:16 +0800
committerruki <[email protected]>2019-08-29 16:01:38 +0800
commit00709d887ac44a69eecda7259bb4e119d74470aa (patch)
treec7d11f57553e186230b1f80355dfcab3f55f2268
parent57d0b3900a27add2dbd81e186c7aa496ea9d369f (diff)
fix show help on ubuntu terminal
-rw-r--r--xmake/core/base/option.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua
index bae74b35a..bf6a9df68 100644
--- a/xmake/core/base/option.lua
+++ b/xmake/core/base/option.lua
@@ -991,14 +991,14 @@ function option.show_main()
-- append the task name
taskline = taskline .. taskname
- -- append color
- taskline = colors.translate("${color.menu.main.task.name}" .. taskline .. "${clear}")
-
-- append spaces
for i = (#taskline), padding do
taskline = taskline .. " "
end
+ -- append color
+ taskline = colors.translate("${color.menu.main.task.name}" .. taskline .. "${clear}")
+
-- append the task description
if taskinfo.description then
taskline = option._inwidth_append(taskline, taskinfo.description, padding + 1 - 18, console_width, console_width - padding - 1 + 18)