Make st work with a plain -e command.

This commit is contained in:
Christoph Lohmann 2013-04-10 17:48:32 +02:00
parent b1813b14d9
commit 684cf55a0d

3
st.c
View file

@ -3332,7 +3332,8 @@ main(int argc, char *argv[]) {
break; break;
case 'e': case 'e':
/* eat all remaining arguments */ /* eat all remaining arguments */
opt_cmd = &argv[1]; if(argc > 1)
opt_cmd = &argv[1];
goto run; goto run;
case 'f': case 'f':
opt_font = EARGF(usage()); opt_font = EARGF(usage());