X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fhistory.c;h=e7bcc5e92a32549bcf6d59b6c4c8d7df4f33d443;hp=a50c00cb2be759dadae04684cf35c2c802bff7a9;hb=049b21f53af51ad7259613f5eefaa0f37b1b2167;hpb=230399f9632c37b66c1c117a17e8327eae6b3235 diff --git a/lib-ui/history.c b/lib-ui/history.c index a50c00c..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] : ""; }