diff options
| author | Christoph Lohmann <20h@r-36.net> | 2013-06-09 15:52:35 +0200 |
|---|---|---|
| committer | Christoph Lohmann <20h@r-36.net> | 2013-06-09 15:52:35 +0200 |
| commit | 5d3318c0c734a1d65e78ed4ce103b4517be8ec3b (patch) | |
| tree | 9620bb3993d4f46fe0cd526e44ef44b04287a309 | |
| parent | 369734c80c6e5049d704a00f436c59ecf4dafae8 (diff) | |
| download | st-5d3318c0c734a1d65e78ed4ce103b4517be8ec3b.tar.gz st-5d3318c0c734a1d65e78ed4ce103b4517be8ec3b.zip | |
Fixing title setting with the title argument.
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -3639,7 +3639,7 @@ main(int argc, char *argv[]) { | |||
| 3639 | /* eat all remaining arguments */ | 3639 | /* eat all remaining arguments */ |
| 3640 | if(argc > 1) { | 3640 | if(argc > 1) { |
| 3641 | opt_cmd = &argv[1]; | 3641 | opt_cmd = &argv[1]; |
| 3642 | if(argv[1] != NULL) { | 3642 | if(argv[1] != NULL && opt_title == NULL) { |
| 3643 | titles = strdup(argv[1]); | 3643 | titles = strdup(argv[1]); |
| 3644 | opt_title = basename(titles); | 3644 | opt_title = basename(titles); |
| 3645 | } | 3645 | } |
