X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sidebar.c;h=ebc1a64d63309b9c280de575501fc6ea151f35b7;hp=f5206c9ecb9d39e648d3f62237f11224ccb02932;hb=643be053e447a35cccc37550ac0087bb5bb5c5ad;hpb=72bfbd51aa27f3f0ac1831bee55905e13d45cef1 diff --git a/sidebar.c b/sidebar.c index f5206c9..ebc1a64 100644 --- a/sidebar.c +++ b/sidebar.c @@ -344,10 +344,7 @@ void scroll_sidebar(int op, int menu) break; case OP_SIDEBAR_NEXT_NEW: if ( (tmp = exist_next_new()) == NULL) - { - if (CurBuffy->next == NULL) return; - CurBuffy = CurBuffy->next; - } + return; else CurBuffy = tmp; break; case OP_SIDEBAR_PREV: @@ -356,10 +353,7 @@ void scroll_sidebar(int op, int menu) break; case OP_SIDEBAR_PREV_NEW: if ( (tmp = exist_prev_new()) == NULL) - { - if(CurBuffy->prev == NULL) return; - CurBuffy = CurBuffy->prev; - } + return; else CurBuffy = tmp; break;