]> granicus.if.org Git - neomutt/commitdiff
tidy code
authorRichard Russon <rich@flatcap.org>
Wed, 17 Feb 2016 20:01:37 +0000 (20:01 +0000)
committerRichard Russon <rich@flatcap.org>
Sun, 6 Mar 2016 16:39:14 +0000 (16:39 +0000)
curs_main.c
mx.c

index 1540f35696d58401b137b6214919ebd0cf7be00b..56f811b5a38e9540361dae3de6334e92aead054a 100644 (file)
@@ -1155,17 +1155,14 @@ int mutt_index_menu (void)
        break;
 
       case OP_MAIN_QUASI_DELETE:
-       if (tag)
-       {
+       if (tag) {
          for (j = 0; j < Context->vcount; j++) {
            if (Context->hdrs[Context->v2r[j]]->tagged) {
              Context->hdrs[Context->v2r[j]]->quasi_deleted = TRUE;
              Context->changed = TRUE;
            }
          }
-       }
-       else
-       {
+       } else {
          CURHDR->quasi_deleted = TRUE;
          Context->changed = 1;
        }
diff --git a/mx.c b/mx.c
index 2bc8f9527b939c45463377a8e147e1b42bc12c5a..a069d70f40b2ea0d6228fd707934b85bc784c76a 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -1006,7 +1006,7 @@ void mx_update_tables(CONTEXT *ctx, int committing)
   for (i = 0, j = 0; i < ctx->msgcount; i++)
   {
     if (!ctx->hdrs[i]->quasi_deleted &&
-       ((committing && (!ctx->hdrs[i]->deleted || 
+       ((committing && (!ctx->hdrs[i]->deleted ||
                        (ctx->magic == M_MAILDIR && option (OPTMAILDIRTRASH)))) ||
        (!committing && ctx->hdrs[i]->active)))
     {