From: Richard Russon Date: Mon, 30 Nov 2015 14:37:10 +0000 (+0000) Subject: sort: sidebar functions X-Git-Tag: neomutt-20160404~14^2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a67a6b37bf10ffe6bb35beedc25508b10a0e2b3c;p=neomutt sort: sidebar functions NOTE: this patch does NOT make any code changes. It simply rearranges entire functions. Reorder the functions in sidebar.c Put the static (helper) functions together. --- diff --git a/sidebar.c b/sidebar.c index 9ce8303e4..90add9cfe 100644 --- a/sidebar.c +++ b/sidebar.c @@ -236,6 +236,7 @@ make_sidebar_entry (char *buf, unsigned int buflen, int width, char *box, } } + void draw_sidebar (void) { @@ -538,17 +539,12 @@ set_curbuffy (char *path) if (!path || !b) return; - while (1) { + for (; b; b = b->next) { if (!strcmp (b->path, path) || !strcmp (b->realpath, path)) { CurBuffy = b; break; } - - if (b->next) - b = b->next; - else - break; } }