projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes in the sidebar format, was completely braindead.
[apps/madmutt.git]
/
lib-ui
/
status.c
diff --git
a/lib-ui/status.c
b/lib-ui/status.c
index
28b1329
..
3da31d9
100644
(file)
--- a/
lib-ui/status.c
+++ b/
lib-ui/status.c
@@
-11,10
+11,10
@@
#include <lib-ui/curses.h>
#include <lib-ui/menu.h>
#include <lib-ui/curses.h>
#include <lib-ui/menu.h>
+#include <lib-mx/mx.h>
#include "mutt.h"
#include "sort.h"
#include "mutt.h"
#include "sort.h"
-#include "mx.h"
#include "buffy.h"
#define SW (option(OPTMBOXPANE)?SidebarWidth:0)
#include "buffy.h"
#define SW (option(OPTMBOXPANE)?SidebarWidth:0)
@@
-52,7
+52,7
@@
static const char *status_format_str (char *buf, ssize_t buflen, char op,
const char *elsestring,
unsigned long data, format_flag flags)
{
const char *elsestring,
unsigned long data, format_flag flags)
{
- char fmt[S
HORT_STRING], tmp[SHORT_
STRING];
+ char fmt[S
TRING], tmp[
STRING];
const char *cp, *p;
int count, optional = (flags & M_FORMAT_OPTIONAL);
MUTTMENU *menu = (MUTTMENU *) data;
const char *cp, *p;
int count, optional = (flags & M_FORMAT_OPTIONAL);
MUTTMENU *menu = (MUTTMENU *) data;
@@
-293,7
+293,7
@@
void menu_status_line (char* buf, ssize_t len, MUTTMENU* menu, const char* p) {
* only to not wrap past end of screen
*/
int width = COLS - SW;
* only to not wrap past end of screen
*/
int width = COLS - SW;
- m
utt_FormatString
(buf, (width >= len ? len : (width + 1)),
+ m
_strformat
(buf, (width >= len ? len : (width + 1)),
p, status_format_str,
(unsigned long) menu, 0);
}
p, status_format_str,
(unsigned long) menu, 0);
}