diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-07 23:19:50 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-07 23:19:50 +0200 |
commit | 41d4acb7a2b34b3364c1c6a57441b9fc9f3106ab (patch) | |
tree | a944e6602d0a68e64e05fcf0465aa4ad18b8f2d2 /helpers.lua | |
parent | 3b3e0dc7cf182bfaba4784e8020ec8f3e7646bce (diff) | |
download | vicious-legacy-41d4acb7a2b34b3364c1c6a57441b9fc9f3106ab.tar.xz |
Truncate helper, txtlen is local.
Diffstat (limited to 'helpers.lua')
-rw-r--r-- | helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers.lua b/helpers.lua index 5f54521..69ab83c 100644 --- a/helpers.lua +++ b/helpers.lua @@ -43,7 +43,7 @@ end --{{{ Truncate a string function truncate(text, maxlen) - txtlen = text:len() + local txtlen = text:len() if txtlen > maxlen then text = text:sub(1, maxlen - 3) .. "..." |