mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-03 15:40:32 +00:00
mshow: default to current message when interactive w/o args
This commit is contained in:
parent
70a3a2ff1d
commit
6dc9eeb050
7
mshow.c
7
mshow.c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user