summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/ui/label.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/xmake/core/ui/label.lua b/xmake/core/ui/label.lua
index f42260ee1..23395c8c3 100644
--- a/xmake/core/ui/label.lua
+++ b/xmake/core/ui/label.lua
@@ -55,7 +55,6 @@ function label:draw()
-- strip text string
local str = self:text()
if str and #str > 0 and textattr then
- str = string.sub(str, 1, self:width())
self:canvas():attr(textattr):move(0, 0):puts(str)
end
end