X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=2811876adf260efa70edcafc211acc0da6c2e746;hp=28c083adf2b0cc22398b3ebac66c418172db93ac;hb=5d3318c0c734a1d65e78ed4ce103b4517be8ec3b;hpb=369734c80c6e5049d704a00f436c59ecf4dafae8 diff --git a/st.c b/st.c index 28c083a..2811876 100644 --- a/st.c +++ b/st.c @@ -3639,7 +3639,7 @@ main(int argc, char *argv[]) { /* eat all remaining arguments */ if(argc > 1) { opt_cmd = &argv[1]; - if(argv[1] != NULL) { + if(argv[1] != NULL && opt_title == NULL) { titles = strdup(argv[1]); opt_title = basename(titles); }