File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ static int opt_debug = 0;
4141static int opt_width = WIDTH ;
4242static char * opt_autoload = NULL ;
4343static int opt_autosave = 1 ;
44-
44+ static int opt_mmedia = 0 ;
4545static int need_restart = 0 ;
4646static int need_load = 0 ;
4747static int need_save = 0 ;
@@ -220,6 +220,8 @@ static char *media_fn[] = {
220220static void mmedia (int t )
221221{
222222 char * mm ;
223+ if (!opt_mmedia )
224+ return ;
223225 instead_lock ();
224226 instead_function (media_fn [t ], NULL );
225227 mm = instead_retval (0 );
@@ -262,6 +264,8 @@ int main(int argc, const char **argv)
262264 opt_autosave = 1 ;
263265 } else if (!strcmp (argv [i ], "-x" )) {
264266 opt_lua = 1 ;
267+ } else if (!strcmp (argv [i ], "-m" )) {
268+ opt_mmedia = 1 ;
265269 } else if (!strncmp (argv [i ], "-d" , 2 )) {
266270 opt_debug = 1 ;
267271 reopen_stderr (argv [i ] + 2 );
You can’t perform that action at this time.
0 commit comments