projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More string and buffer functions.
[apps/madmutt.git]
/
lib-ui
/
history.c
diff --git
a/lib-ui/history.c
b/lib-ui/history.c
index
b70dd90
..
e7bcc5e
100644
(file)
--- a/
lib-ui/history.c
+++ b/
lib-ui/history.c
@@
-7,7
+7,7
@@
* please see the file GPL in the top level source directory.
*/
* please see the file GPL in the top level source directory.
*/
-#include <lib-
lib/lib-lib
.h>
+#include <lib-
ui/lib-ui
.h>
#include "mutt.h"
#include "history.h"
#include "mutt.h"
#include "history.h"
@@
-82,13
+82,13
@@
const char *mutt_history_next (history_class_t hclass)
struct history *h = &History[hclass];
if (!HistSize)
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;
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)
}
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)
struct history *h = &History[hclass];
if (!HistSize)
- return
("")
; /* disabled */
+ return
""
; /* disabled */
prev = h->cur - 1;
if (prev < 0) {
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;
}
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] : ""
;
}
}