From 00709d887ac44a69eecda7259bb4e119d74470aa Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 29 Aug 2019 23:40:16 +0800 Subject: fix show help on ubuntu terminal --- xmake/core/base/option.lua | 6 +++--- 1 file 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) -- cgit v1.3.1