X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fhistory.c;h=e7bcc5e92a32549bcf6d59b6c4c8d7df4f33d443;hb=4cc921f9a484858a05dbfe904f7cb4472e2881d9;hp=b27daede234ff52fcebfa2eb46392e56c9a52234;hpb=f435868132e200bfa71ac155f037cf64bf5414ba;p=apps%2Fmadmutt.git diff --git a/lib-ui/history.c b/lib-ui/history.c index b27daed..e7bcc5e 100644 --- a/lib-ui/history.c +++ b/lib-ui/history.c @@ -82,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) @@ -97,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) { @@ -107,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] : ""; }