mshow: default to current message when interactive w/o args

This commit is contained in:
Christian Neukirchen 2016-07-20 15:38:35 +02:00
parent 70a3a2ff1d
commit 6dc9eeb050

View File

@ -471,7 +471,12 @@ main(int argc, char *argv[])
if (f)
filters = blaze822(f);
}
blaze822_loop(argc-optind, argv+optind, show);
if (argc == optind) {
char *cur[] = { "." };
blaze822_loop(1, cur, show);
} else {
blaze822_loop(argc-optind, argv+optind, show);
}
if (!nflag) // don't set cur
blaze822_seq_setcur(newcur);
}