From f0370416f1e9b32c307ba0a7b45e577571745ed7 Mon Sep 17 00:00:00 2001 From: nion Date: Sun, 27 Feb 2005 21:45:17 +0000 Subject: [PATCH] Nico Golde: fixed sidebar-next-new git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@111 e385b8ad-14ed-0310-8656-cc95a2468c6d --- sidebar.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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; -- 2.20.1