Commit 5d3318c

Christoph Lohmann <20h@r-36.net>
2013-06-09 09:52:35
Fixing title setting with the title argument.
1 parent 369734c
Changed files (1)
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);
 			}