diff options
author | Christoph Lohmann <20h@r-36.net> | 2013-04-10 17:48:32 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-04-10 17:48:32 +0200 |
commit | 684cf55a0d21da19a6e9e4a490a7c4dd3334638d (patch) | |
tree | e2a665d02b14c27a56b9821774423149a4e851d9 | |
parent | b1813b14d956978ae8af37166b3cccc3a7b4b720 (diff) | |
download | st-684cf55a0d21da19a6e9e4a490a7c4dd3334638d.tar.gz st-684cf55a0d21da19a6e9e4a490a7c4dd3334638d.tar.bz2 |
Make st work with a plain -e command.
-rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3332,7 +3332,8 @@ main(int argc, char *argv[]) { break; case 'e': /* eat all remaining arguments */ - opt_cmd = &argv[1]; + if(argc > 1) + opt_cmd = &argv[1]; goto run; case 'f': opt_font = EARGF(usage()); |