projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deal with $shell from lua from now on.
[apps/madmutt.git]
/
commands.c
diff --git
a/commands.c
b/commands.c
index
3493587
..
8d31af6
100644
(file)
--- a/
commands.c
+++ b/
commands.c
@@
-16,6
+16,7
@@
#include <lib-sys/exit.h>
#include <lib-sys/unix.h>
#include <lib-sys/exit.h>
#include <lib-sys/unix.h>
+#include <lib-lua/lib-lua.h>
#include <lib-ui/curses.h>
#include <lib-ui/enter.h>
#include <lib-ui/menu.h>
#include <lib-ui/curses.h>
#include <lib-ui/enter.h>
#include <lib-ui/menu.h>
@@
-518,8
+519,8
@@
void mutt_shell_escape (void)
buf[0] = 0;
if (mutt_get_field (_("Shell command: "), buf, sizeof (buf), M_CMD) == 0) {
buf[0] = 0;
if (mutt_get_field (_("Shell command: "), buf, sizeof (buf), M_CMD) == 0) {
- if (!buf[0]
&& Shell
)
- m
_strcpy(buf, sizeof(buf), Shell
);
+ if (!buf[0])
+ m
lua_value(buf, sizeof(buf), "madmutt", "shell"
);
if (buf[0]) {
CLEARLINE (LINES - 1);
mutt_endwin (NULL);
if (buf[0]) {
CLEARLINE (LINES - 1);
mutt_endwin (NULL);