Skip to content

Commit cdf2ebf

Browse files
committed
🔃
1 parent cd7c370 commit cdf2ebf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/Config/TagsDatabase.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ local function ShortenUnitName(unit, maxChars)
424424
if not unit or not UnitExists(unit) then return "" end
425425
local unitName = UnitName(unit) or ""
426426
if maxChars and maxChars > 0 then
427-
unitName = string.sub(unitName, 1, maxChars)
427+
unitName = string.format("%." .. maxChars .. "s", unitName)
428428
end
429429
return UUF:CleanTruncateUTF8String(unitName)
430430
end

0 commit comments

Comments
 (0)