diff --git a/lua/Trans/util/node.lua b/lua/Trans/util/node.lua index a3573a4..73626b0 100644 --- a/lua/Trans/util/node.lua +++ b/lua/Trans/util/node.lua @@ -29,7 +29,7 @@ local text_meta = { render = function(self, buffer, line, col) local nodes = self.nodes local step = self.step - local len = step and #step or 0 + local len = step and #step or 0 for _, node in ipairs(nodes) do node:render(buffer, line, col) @@ -73,7 +73,6 @@ local function format(args) wid = wid + args[i][1]:width() end - local space = math.max(math.floor((width - wid) / (size - 1)), 0) args.step = spin:rep(space) args.width = nil