diff options
Diffstat (limited to 'alot/helper.py')
-rw-r--r-- | alot/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py index ba68bd45..9264e785 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -133,7 +133,7 @@ def string_decode(string, enc='ascii'): def shorten(string, maxlen): """shortens string if longer than maxlen, appending ellipsis""" - if maxlen > 1 and len(string) > maxlen: + if 1 < maxlen < len(string): string = string[:maxlen - 1] + u'\u2026' return string[:maxlen] |