summaryrefslogtreecommitdiffstats
path: root/hdrline.c
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2002-11-11 20:32:30 +0000
committerMichael Elkins <me@sigpipe.org>2002-11-11 20:32:30 +0000
commit021118d5487ac2e692ea5f7818aa615cd40f1059 (patch)
tree36254765836772a2e00281174293458467aba394 /hdrline.c
parentb7af4f593288f7ac92a1c2fb724c21dcd580ecdc (diff)
Fix #485: Make %z work like %Z inside of %{} in $index_format.
Diffstat (limited to 'hdrline.c')
-rw-r--r--hdrline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hdrline.c b/hdrline.c
index ffbaa880..33c8108a 100644
--- a/hdrline.c
+++ b/hdrline.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1996-2000 Michael R. Elkins <me@cs.hmc.edu>
+ * Copyright (C) 1996-2000,2002 Michael R. Elkins <me@mutt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -346,7 +346,7 @@ hdr_format_str (char *dest,
if (*cp == '%')
{
cp++;
- if (*cp == 'Z' && (op == 'd' || op == '{'))
+ if ((*cp == 'Z' || *cp == 'z') && (op == 'd' || op == '{'))
{
if (len >= 5)
{