From 41d4acb7a2b34b3364c1c6a57441b9fc9f3106ab Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Fri, 7 Aug 2009 23:19:50 +0200 Subject: Truncate helper, txtlen is local. --- helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpers.lua') 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) .. "..." -- cgit v1.2.3