Fix missing ellipsis in shortenString function.

This commit is contained in:
Nicolo Maio 2024-02-22 09:58:26 +01:00
parent 2ee2c180a5
commit aa9669fe47

View file

@ -57,7 +57,7 @@ function shortenString(name, max_len)
if (string.len(name) < max_len + 1 --[[ The space taken by the ellipsis --]] ) then
return (name)
else
return (string.sub(name, 1, max_len) .. ellipsis)
return string.sub(name, 1, max_len) .. ellipsis
end
end