projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now deal with EDITOR from lua as well.
[apps/madmutt.git]
/
lib-mx
/
mx.c
diff --git
a/lib-mx/mx.c
b/lib-mx/mx.c
index
96dab2c
..
1d6ebf1
100644
(file)
--- a/
lib-mx/mx.c
+++ b/
lib-mx/mx.c
@@
-12,9
+12,11
@@
#include <utime.h>
#include <utime.h>
+#include <lib-lua/lib-lua.h>
#include <lib-sys/unix.h>
#include <lib-mime/mime.h>
#include <lib-ui/sidebar.h>
#include <lib-sys/unix.h>
#include <lib-mime/mime.h>
#include <lib-ui/sidebar.h>
+#include <lib-crypt/crypt.h>
#include "mutt.h"
#include "pattern.h"
#include "mutt.h"
#include "pattern.h"
@@
-36,8
+38,6
@@
#include <nntp/nntp.h>
#endif
#include <nntp/nntp.h>
#endif
-#include <lib-crypt/crypt.h>
-
static mx_t const *mxfmts[] = {
&mbox_mx,
&mmdf_mx,
static mx_t const *mxfmts[] = {
&mbox_mx,
&mmdf_mx,
@@
-69,9
+69,8
@@
static int invoke_dotlock (const char *path, int flags, int retry)
mutt_quote_filename (f, sizeof (f), path);
mutt_quote_filename (f, sizeof (f), path);
- snprintf (cmd, sizeof (cmd),
- "%s %s%s%s%s%s%s%s",
- NONULL (MuttDotlock),
+ snprintf(cmd, sizeof(cmd), "%s %s%s%s%s%s%s%s",
+ mlua_reggets(LTK_DOTLOCK),
flags & DL_FL_TRY ? "-t " : "",
flags & DL_FL_UNLOCK ? "-u " : "",
flags & DL_FL_USEPRIV ? "-p " : "",
flags & DL_FL_TRY ? "-t " : "",
flags & DL_FL_UNLOCK ? "-u " : "",
flags & DL_FL_USEPRIV ? "-p " : "",