summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-12-10 20:43:17 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2011-12-10 20:43:17 +0000
commitd72d2d10c819711681f84d77deedfcb6e3dd05c1 (patch)
treeec137efc9e6541ce25dae655550d112587f19b8b /alot/buffers.py
parentb47e67fa180222403f9bbfb46ce8926a28b70f32 (diff)
[cosmetic] 's' indicating plural in Buffer.__str_
Diffstat (limited to 'alot/buffers.py')
-rw-r--r--alot/buffers.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index 749ce274..6e142c5e 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -160,8 +160,9 @@ class SearchBuffer(Buffer):
Buffer.__init__(self, ui, self.body, 'search')
def __str__(self):
- formatstring = '[search] for "%s" (%d threads)'
- return formatstring % (self.querystring, self.result_count)
+ formatstring = '[search] for "%s" (%d thread%s)'
+ return formatstring % (self.querystring, self.result_count,
+ 's' * (not (self.result_count == 1)))
def cleanup(self):
self.kill_filler_process()
@@ -233,7 +234,9 @@ class ThreadBuffer(Buffer):
Buffer.__init__(self, ui, self.body, 'thread')
def __str__(self):
- return '[thread] %s, (%d)' % (self.thread.get_subject(), self.message_count)
+ return '[thread] %s (%d message%s)' % (self.thread.get_subject(),
+ self.message_count,
+ 's' * (self.message_count > 1))
def get_selected_thread(self):
"""returns the displayed :class:`~alot.db.Thread`"""