diff --git a/src/ltui/textarea.lua b/src/ltui/textarea.lua index 698b717..e860688 100644 --- a/src/ltui/textarea.lua +++ b/src/ltui/textarea.lua @@ -64,7 +64,7 @@ function textarea:draw(transparent) if self:option("progress") then local progress = math.floor((self._STARTLINE + math.min(self:height(), self._LINECOUNT)) * 100 / self._LINECOUNT) if (self._STARTLINE > 0 or progress < 100) and self:width() > 20 then - self:canvas():move(self:width() - 10, self:height() - 1):putstr(string.format("(%%%d)", progress)) + self:canvas():move(self:width() - 10, self:height() - 1):putstr(string.format("(%d%%)", progress)) end end end