Properly use ellipsis in #3293

This commit is contained in:
Georg Lukas 2017-09-11 15:41:12 +02:00 committed by Emmanuel Gil Peyrot
parent 3b5ea1a961
commit 88ae8a68a2

View file

@ -170,7 +170,7 @@ class ConversationInfoWin(InfoWin):
self.addstr('[', to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
self.addstr(presence, to_curses_attr(color))
if resource and resource.status:
shortened = resource.status[:20] + (resource.status[:20] and '..')
shortened = resource.status[:20] + (resource.status[:20] and '')
self.addstr(' %s' % shortened, to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
self.addstr(']', to_curses_attr(get_theme().COLOR_INFORMATION_BAR))