X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fhistory.c;h=e7bcc5e92a32549bcf6d59b6c4c8d7df4f33d443;hp=92bdb9f6884f0c4abe21809819dca1d7527653bf;hb=049b21f53af51ad7259613f5eefaa0f37b1b2167;hpb=fd25c07c1e9e19606b1b6d5533df1f6239455036 diff --git a/lib-ui/history.c b/lib-ui/history.c index 92bdb9f..e7bcc5e 100644 --- a/lib-ui/history.c +++ b/lib-ui/history.c @@ -7,11 +7,7 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include +#include #include "mutt.h" #include "history.h" @@ -86,13 +82,13 @@ const char *mutt_history_next (history_class_t hclass) struct history *h = &History[hclass]; if (!HistSize) - return (""); /* disabled */ + return ""; /* disabled */ next = h->cur + 1; if (next > HistSize - 1) next = 0; h->cur = h->hist[next] ? next : 0; - return (h->hist[h->cur] ? h->hist[h->cur] : ""); + return h->hist[h->cur] ? h->hist[h->cur] : ""; } const char *mutt_history_prev (history_class_t hclass) @@ -101,7 +97,7 @@ const char *mutt_history_prev (history_class_t hclass) struct history *h = &History[hclass]; if (!HistSize) - return (""); /* disabled */ + return ""; /* disabled */ prev = h->cur - 1; if (prev < 0) { @@ -111,5 +107,5 @@ const char *mutt_history_prev (history_class_t hclass) } if (h->hist[prev]) h->cur = prev; - return (h->hist[h->cur] ? h->hist[h->cur] : ""); + return h->hist[h->cur] ? h->hist[h->cur] : ""; }