瀏覽代碼

Fixing title setting with the title argument.

Christoph Lohmann 11 年之前
父節點
當前提交
5d3318c0c7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      st.c

+ 1 - 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);
 			}