aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-04-10 17:48:32 +0200
committerChristoph Lohmann <20h@r-36.net>2013-04-10 17:48:32 +0200
commit684cf55a0d21da19a6e9e4a490a7c4dd3334638d (patch)
treee2a665d02b14c27a56b9821774423149a4e851d9 /st.c
parentb1813b14d956978ae8af37166b3cccc3a7b4b720 (diff)
downloadst-684cf55a0d21da19a6e9e4a490a7c4dd3334638d.tar.gz
st-684cf55a0d21da19a6e9e4a490a7c4dd3334638d.zip
Make st work with a plain -e command.
Diffstat (limited to 'st.c')
-rw-r--r--st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/st.c b/st.c
index c938ff4..93058b9 100644
--- a/st.c
+++ b/st.c
@@ -3332,7 +3332,8 @@ main(int argc, char *argv[]) {
3332 break; 3332 break;
3333 case 'e': 3333 case 'e':
3334 /* eat all remaining arguments */ 3334 /* eat all remaining arguments */
3335 opt_cmd = &argv[1]; 3335 if(argc > 1)
3336 opt_cmd = &argv[1];
3336 goto run; 3337 goto run;
3337 case 'f': 3338 case 'f':
3338 opt_font = EARGF(usage()); 3339 opt_font = EARGF(usage());