X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fcurs_main.c;fp=lib-ui%2Fcurs_main.c;h=6a40a002ae727970cf8c228fca66a9576d00bc7a;hp=4a8a2be862551b83e846dd8bb2ad495cf759d2d3;hb=19806c1ee3019ddf9facf23eb19a13c128abfba9;hpb=981e10e224fde4de5d40adcee1deda89df2715ca diff --git a/lib-ui/curs_main.c b/lib-ui/curs_main.c index 4a8a2be..6a40a00 100644 --- a/lib-ui/curs_main.c +++ b/lib-ui/curs_main.c @@ -156,8 +156,8 @@ static int ci_next_undeleted (int msgno) for (i = msgno + 1; i < Context->vcount; i++) if (!Context->hdrs[Context->v2r[i]]->deleted) - return (i); - return (-1); + return i; + return -1; } static int ci_previous_undeleted (int msgno) @@ -166,8 +166,8 @@ static int ci_previous_undeleted (int msgno) for (i = msgno - 1; i >= 0; i--) if (!Context->hdrs[Context->v2r[i]]->deleted) - return (i); - return (-1); + return i; + return -1; } /* Return the index of the first new message, or failing that, the first @@ -182,13 +182,13 @@ static int ci_first_message (void) if (!Context->hdrs[Context->v2r[i]]->read && !Context->hdrs[Context->v2r[i]]->deleted) { if (!Context->hdrs[Context->v2r[i]]->old) - return (i); + return i; else if (old == -1) old = i; } } if (old != -1) - return (old); + return old; /* If Sort is reverse and not threaded, the latest message is first. * If Sort is threaded, the latest message is first iff exactly one @@ -199,7 +199,7 @@ static int ci_first_message (void) ((Sort ^ SortAux) & SORT_REVERSE))) return 0; else - return (Context->vcount ? Context->vcount - 1 : 0); + return Context->vcount ? Context->vcount - 1 : 0; } return 0; } @@ -1976,7 +1976,7 @@ int mutt_index_menu (void) } mutt_menuDestroy (&menu); - return (closed); + return closed; } void mutt_set_header_color (CONTEXT * ctx, HEADER * curhdr)