tFixing title setting with the title argument. - st - [fork] customized build o… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 5d3318c0c734a1d65e78ed4ce103b4517be8ec3b | |
parent 369734c80c6e5049d704a00f436c59ecf4dafae8 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sun, 9 Jun 2013 15:52:35 +0200 | |
Fixing title setting with the title argument. | |
Diffstat: | |
M st.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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); | |
} |