]> granicus.if.org Git - neomutt/commitdiff
reformat
authorRichard Russon <rich@flatcap.org>
Thu, 18 Aug 2016 16:03:42 +0000 (17:03 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 18 Aug 2016 16:03:42 +0000 (17:03 +0100)
pattern.c

index 4d24ed3d0857251f0c96e01a59b0cdf74faf8af9..f086095cb9ed040931551244eb068d47f9a5e0e3 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -1299,23 +1299,23 @@ void mutt_check_simple (char *s, size_t len, const char *simple)
  * @h: Header of current email
  *
  * Returns:
- *     THREAD*: success, email found
- *     NULL:    on error
+ *  THREAD*: success, email found
+ *  NULL:    on error
  */
 static THREAD *
 top_of_thread (HEADER *h)
 {
-       THREAD *t;
+  THREAD *t;
 
-       if (!h)
-               return NULL;
+  if (!h)
+    return NULL;
 
-       t = h->thread;
+  t = h->thread;
 
-       while (t && t->parent)
-               t = t->parent;
+  while (t && t->parent)
+    t = t->parent;
 
-       return t;
+  return t;
 }
 
 /**
@@ -1323,43 +1323,45 @@ top_of_thread (HEADER *h)
  * @h: Header of current email
  *
  * Returns:
- *     1: Success
- *     0: Failure
+ *  1: Success
+ *  0: Failure
  */
 int
 mutt_limit_current_thread (HEADER *h)
 {
-       int i;
-       THREAD *me;
-
-       if (!h)
-               return 0;
-
-       me = top_of_thread (h);
-       if (!me)
-               return 0;
-
-       Context->vcount    = 0;
-       Context->vsize     = 0;
-       Context->collapsed = 0;
-
-       for (i = 0; i < Context->msgcount; i++) {
-               Context->hdrs[i]->virtual    = -1;
-               Context->hdrs[i]->limited    = 0;
-               Context->hdrs[i]->collapsed  = 0;
-               Context->hdrs[i]->num_hidden = 0;
-
-               if (top_of_thread (Context->hdrs[i]) == me) {
-                       BODY *body = Context->hdrs[i]->content;
-
-                       Context->hdrs[i]->virtual = Context->vcount;
-                       Context->hdrs[i]->limited = 1;
-                       Context->v2r[Context->vcount] = i;
-                       Context->vcount++;
-                       Context->vsize += (body->length + body->offset - body->hdr_offset);
-               }
-       }
-       return 1;
+  int i;
+  THREAD *me;
+
+  if (!h)
+    return 0;
+
+  me = top_of_thread (h);
+  if (!me)
+    return 0;
+
+  Context->vcount    = 0;
+  Context->vsize     = 0;
+  Context->collapsed = 0;
+
+  for (i = 0; i < Context->msgcount; i++)
+  {
+    Context->hdrs[i]->virtual    = -1;
+    Context->hdrs[i]->limited    = 0;
+    Context->hdrs[i]->collapsed  = 0;
+    Context->hdrs[i]->num_hidden = 0;
+
+    if (top_of_thread (Context->hdrs[i]) == me)
+    {
+      BODY *body = Context->hdrs[i]->content;
+
+      Context->hdrs[i]->virtual = Context->vcount;
+      Context->hdrs[i]->limited = 1;
+      Context->v2r[Context->vcount] = i;
+      Context->vcount++;
+      Context->vsize += (body->length + body->offset - body->hdr_offset);
+    }
+  }
+  return 1;
 }
 
 int mutt_pattern_func (int op, char *prompt)