aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann2013-06-09 15:52:35 +0200
committerChristoph Lohmann2013-06-09 15:52:35 +0200
commitdf12c88e4e2811a054a417600f15bb3b89f1eaaf (patch)
treea47a74b0a03b89f0eee932c87a25f4c73bf3d197 /st.c
parentc8238c328edad329ef1146eed08bf86265d6c470 (diff)
downloadaur-df12c88e4e2811a054a417600f15bb3b89f1eaaf.tar.gz
Fixing title setting with the title argument.
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 28c083adf2b0..2811876adf26 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);
}