summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/utils.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-31 16:23:03 +0800
committerruki <[email protected]>2020-05-31 16:23:03 +0800
commitbe4e9c0603d410b6cb7706645f555b49d66b9096 (patch)
treec8e326f7d555b00f168c0d274d5fa8939dcd46a6 /xmake/core/sandbox/modules/utils.lua
parentd7cc9758d1f7beb92a7898a556cb4ecc62e34d32 (diff)
improve progress without scroll
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