summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/remove_packages.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/action/require/impl/remove_packages.lua')
-rw-r--r--xmake/modules/private/action/require/impl/remove_packages.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/remove_packages.lua b/xmake/modules/private/action/require/impl/remove_packages.lua
index b65627256..f8f93c663 100644
--- a/xmake/modules/private/action/require/impl/remove_packages.lua
+++ b/xmake/modules/private/action/require/impl/remove_packages.lua
@@ -36,7 +36,7 @@ function _get_package_configs_str(manifest_file)
end
end
local configs_str = #configs > 0 and "[" .. table.concat(configs, ", ") .. "]" or ""
- local limitwidth = os.getwinsize().width * 2 / 3
+ local limitwidth = math.floor(os.getwinsize().width * 2 / 3)
if #configs_str > limitwidth then
configs_str = configs_str:sub(1, limitwidth) .. " ..)"
end