aboutsummaryrefslogtreecommitdiff
path: root/mbox.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mbox.lua')
-rw-r--r--mbox.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/mbox.lua b/mbox.lua
index f0a5817..d5c1b56 100644
--- a/mbox.lua
+++ b/mbox.lua
@@ -36,9 +36,7 @@ function worker(format, mbox)
subject = helpers.escape(subject)
-- Don't abuse the wibox, truncate
- if subject:len() > 22 then
- subject = subject:sub(1, 19) .. "..."
- end
+ subject = helpers.truncate(subject, 22)
return {subject}
end