summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/sandbox/modules/utils.lua')
-rw-r--r--xmake/core/sandbox/modules/utils.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua
index 0440667b0..ff84a01ce 100644
--- a/xmake/core/sandbox/modules/utils.lua
+++ b/xmake/core/sandbox/modules/utils.lua
@@ -185,7 +185,7 @@ function sandbox_utils.clearline()
if not emptychars then
-- get left width
- local width = os.getwinsize()["width"] - 1
+ local width = os.getwinsize()["width"]
if not width or width <= 0 then
width = 64
end