small patch for status.c
Hi,
I have recently been working on an enhancement for Mutt - more on that
when I have something I am willing to show the world. :-) While I was
browsing status.c I noticed that some of the format specifiers were
missing from the comments at the top of status_format_str(). So, here
is a small patch to add the missing ones, fix a spelling mistake and
move the code for the 'h' option into its correct place alphabetically,
i.e. after 'f' and not before.
%%%%
--- status.c.orig 2007-04-20 22:26:50.000000000 +0100
+++ status.c 2008-02-22 18:03:47.000000000 +0000
@@ -49,14 +50,16 @@
* %h = hostname
* %l = length of mailbox (in bytes) [option]
* %m = total number of messages [option]
- * %M = number of messages shown (virutal message count when limiting) [option]
+ * %M = number of messages shown (virtual message count when limiting) [option]
* %n = number of new messages [option]
+ * %o = number of old unread messages [option]
* %p = number of postponed messages [option]
* %P = percent of way through index
* %r = readonly/wontwrite/changed flag
* %s = current sorting method ($sort)
* %S = current aux sorting method ($sort_aux)
* %t = # of tagged messages [option]
+ * %u = number of unread messages [option]
* %v = Mutt version
* %V = currently active limit pattern [option] */
static const char *
@@ -92,11 +126,6 @@
optional = 0;
break;
- case 'h':
- snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
- snprintf (buf, buflen, fmt, NONULL(Hostname));
- break;
-
case 'f':
snprintf (fmt, sizeof(fmt), "%%%ss", prefix);
if (Context && Context->path)
@@ -119,6 +148,11 @@
optional = 0;
break;
+ case 'h':
+ snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
+ snprintf (buf, buflen, fmt, NONULL(Hostname));
+ break;
+
case 'l':
if (!optional)
{
%%%%
Cheers,
Nick.
--