Andreas Krennmair:
authorak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 21 Mar 2005 12:16:05 +0000 (12:16 +0000)
committerak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Mon, 21 Mar 2005 12:16:05 +0000 (12:16 +0000)
fixed behaviour when generating the "New mail in ..." string so that "..." won't be shown at the end anymore unless the complete list really doesn't fit on the screen anymore. This seems to have been a relic of the list->array transition.

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@219 e385b8ad-14ed-0310-8656-cc95a2468c6d

buffy.c

diff --git a/buffy.c b/buffy.c
index 67800dd..c1dadeb 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -588,7 +588,7 @@ int mutt_buffy_list (void)
       first = 0;
     }
   }
-  if (!first && tmp) {
+  if (!first && i < Incoming->length) {
     strncat (buffylist + pos, ", ...", sizeof (buffylist) - 1 - pos);   /* __STRNCAT_CHECKED__ */
   }
   if (!first) {