]> granicus.if.org Git - neomutt/commitdiff
clang-format
authorRichard Russon <rich@flatcap.org>
Thu, 29 Aug 2019 13:38:57 +0000 (14:38 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 29 Aug 2019 13:38:57 +0000 (14:38 +0100)
browser.c
compose.c
compress.c
maildir/maildir.c
mx.c
sidebar.c

index 7045cffb0c17397813ac0fe698959fa83c1e1ee3..b8c8f56b287210f12224290184c4e421b2c2ae41 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -870,8 +870,8 @@ static int examine_mailboxes(struct Menu *menu, struct BrowserState *state)
           continue;
         case MUTT_NOTMUCH:
         case MUTT_NNTP:
-          add_folder(menu, state, mailbox_path(np->mailbox),
-                     np->mailbox->name, NULL, np->mailbox, NULL);
+          add_folder(menu, state, mailbox_path(np->mailbox), np->mailbox->name,
+                     NULL, np->mailbox, NULL);
           continue;
         default: /* Continue */
           break;
index bf191d9581ae030a40283fe6ba5ab0cbe9ed5ddf..fb4eaae2c22a89fa26427fc19cff1264f3e8ab89 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -370,8 +370,8 @@ static void redraw_crypt_lines(struct ComposeRedrawData *rd)
   struct Email *e = rd->email;
 
   SET_COLOR(MT_COLOR_COMPOSE_HEADER);
-  mutt_window_mvprintw(rd->win, HDR_CRYPT, 0, "%*s",
-                       HeaderPadding[HDR_CRYPT], _(Prompts[HDR_CRYPT]));
+  mutt_window_mvprintw(rd->win, HDR_CRYPT, 0, "%*s", HeaderPadding[HDR_CRYPT],
+                       _(Prompts[HDR_CRYPT]));
   NORMAL_COLOR;
 
   if ((WithCrypto & (APPLICATION_PGP | APPLICATION_SMIME)) == 0)
@@ -533,8 +533,8 @@ static void redraw_mix_line(struct ListHead *chain, struct ComposeRedrawData *rd
   char *t = NULL;
 
   SET_COLOR(MT_COLOR_COMPOSE_HEADER);
-  mutt_window_mvprintw(rd->win, HDR_MIX, 0, "%*s",
-                       HeaderPadding[HDR_MIX], _(Prompts[HDR_MIX]));
+  mutt_window_mvprintw(rd->win, HDR_MIX, 0, "%*s", HeaderPadding[HDR_MIX],
+                       _(Prompts[HDR_MIX]));
   NORMAL_COLOR;
 
   if (STAILQ_EMPTY(chain))
@@ -666,8 +666,8 @@ static void draw_envelope(struct ComposeRedrawData *rd)
   draw_envelope_addr(HDR_REPLYTO, &e->env->reply_to, rd);
 
   SET_COLOR(MT_COLOR_COMPOSE_HEADER);
-  mutt_window_mvprintw(rd->win, HDR_FCC, 0, "%*s",
-                       HeaderPadding[HDR_FCC], _(Prompts[HDR_FCC]));
+  mutt_window_mvprintw(rd->win, HDR_FCC, 0, "%*s", HeaderPadding[HDR_FCC],
+                       _(Prompts[HDR_FCC]));
   NORMAL_COLOR;
   mutt_paddstr(W, fcc);
 
index 3c20069e60b8f006bf54d556a6076c4869d488cd..99ca6b338812f0211f13b749552f7f4f5303f034 100644 (file)
@@ -381,8 +381,7 @@ bool mutt_comp_can_append(struct Mailbox *m)
   if (ci->cmd_append || ci->cmd_close)
     return true;
 
-  mutt_error(_("Can't append without an append-hook or close-hook : %s"),
-             mailbox_path(m));
+  mutt_error(_("Can't append without an append-hook or close-hook : %s"), mailbox_path(m));
   return false;
 }
 
index 398269850b65f41a6deeed946a25c6b775f33935..ff1e87a72f46e44c55f0c63e14475cf930a6d4e9 100644 (file)
@@ -603,8 +603,8 @@ int maildir_msg_open_new(struct Mailbox *m, struct Message *msg, struct Email *e
   while (true)
   {
     snprintf(path, sizeof(path), "%s/tmp/%s.%lld.R%" PRIu64 ".%s%s",
-             mailbox_path(m), subdir, (long long) time(NULL),
-             mutt_rand64(), NONULL(ShortHostname), suffix);
+             mailbox_path(m), subdir, (long long) time(NULL), mutt_rand64(),
+             NONULL(ShortHostname), suffix);
 
     mutt_debug(LL_DEBUG2, "Trying %s\n", path);
 
diff --git a/mx.c b/mx.c
index ee2f94ea4873b535cac6178723da4389e95b6c9d..787b86f8dd0ac149a5e2dc9d16389f04cd7ea75f 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -739,8 +739,7 @@ int mx_mbox_close(struct Context **ptr)
   }
 
   /* copy mails to the trash before expunging */
-  if (purge && (m->msg_deleted != 0) &&
-      (mutt_str_strcmp(mailbox_path(m), C_Trash) != 0))
+  if (purge && (m->msg_deleted != 0) && (mutt_str_strcmp(mailbox_path(m), C_Trash) != 0))
   {
     if (trash_append(ctx->mailbox) != 0)
       return -1;
@@ -889,8 +888,7 @@ int mx_mbox_sync(struct Mailbox *m, int *index_hint)
   msgcount = m->msg_count;
   deleted = m->msg_deleted;
 
-  if (purge && (m->msg_deleted != 0) &&
-      (mutt_str_strcmp(mailbox_path(m), C_Trash) != 0))
+  if (purge && (m->msg_deleted != 0) && (mutt_str_strcmp(mailbox_path(m), C_Trash) != 0))
   {
     if (trash_append(m) != 0)
       return -1;
index c6d2c6de698c7f92aba802dbb4d8c86f819e5e63..00c57b505c77fc624ad97194da58ad431cc423d7 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -881,8 +881,8 @@ static void draw_sidebar(int num_rows, int num_cols, int div_width)
     /* check whether C_Folder is a prefix of the current folder's path */
     bool maildir_is_prefix = false;
     if ((mutt_buffer_len(m->pathbuf) > maildirlen) &&
-        (mutt_str_strncmp(C_Folder, mailbox_path(m), maildirlen) == 0) && C_SidebarDelimChars &&
-        strchr(C_SidebarDelimChars, mailbox_path(m)[maildirlen]))
+        (mutt_str_strncmp(C_Folder, mailbox_path(m), maildirlen) == 0) &&
+        C_SidebarDelimChars && strchr(C_SidebarDelimChars, mailbox_path(m)[maildirlen]))
     {
       maildir_is_prefix = true;
     }