summaryrefslogtreecommitdiffstats
path: root/hdrline.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-08-31 13:40:07 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-08-31 13:40:07 +0000
commit43301fe8629138f9c0770c4896365a2ecf15aa4b (patch)
treefa1e4c8da0cf6294184adb6bf063dbe5a77e6702 /hdrline.c
parentdd53cfef3b772ad69e888eaf73105fd1b663ea0c (diff)
Updating to patch-0.94.4.vikas.collapse.3.
Diffstat (limited to 'hdrline.c')
-rw-r--r--hdrline.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/hdrline.c b/hdrline.c
index c5b5fd6a..822ea633 100644
--- a/hdrline.c
+++ b/hdrline.c
@@ -226,7 +226,8 @@ hdr_format_str (char *dest,
int optional = (flags & M_FORMAT_OPTIONAL);
int threads = ((Sort & SORT_MASK) == SORT_THREADS);
int is_index = (flags & M_FORMAT_INDEX);
-#define NEW (threads && hdr->collapsed && hdr->num_hidden > 1 && mutt_thread_contains_unread (ctx, hdr))
+#define NEW (threads && hdr->collapsed && hdr->num_hidden > 1 && mutt_thread_contains_unread (ctx, hdr) == 1)
+#define OLD (threads && hdr->collapsed && hdr->num_hidden > 1 && mutt_thread_contains_unread (ctx, hdr) == 2)
size_t len;
hdr = hfi->hdr;
@@ -545,9 +546,9 @@ hdr_format_str (char *dest,
ch = ' ';
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
snprintf (buf2, sizeof (buf2),
- "%c%c%c",
- (hdr->read && (ctx && ctx->msgnotreadyet != hdr->msgno))
- ? (NEW ? 'n' : (hdr->replied ? 'r' : ' ')) : (hdr->old ? 'O' : (NEW ? 'n' : 'N')),
+ "%c%c%c", (NEW ? 'n' : (OLD ? 'o' :
+ ((hdr->read && (ctx && ctx->msgnotreadyet != hdr->msgno))
+ ? (hdr->replied ? 'r' : ' ') : (hdr->old ? 'O' : 'N')))),
hdr->deleted ? 'D' : (hdr->attach_del ? 'd' : ch),
hdr->tagged ? '*' :
(hdr->flagged ? '!' :
@@ -567,6 +568,7 @@ hdr_format_str (char *dest,
return (src);
#undef NEW
+#undef OLD
}
void