[hackers] [st] Fixing title setting with the title argument. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sun, 09 Jun 2013 15:54:58 +0200

commit 5d3318c0c734a1d65e78ed4ce103b4517be8ec3b
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sun Jun 9 15:52:35 2013 +0200

    Fixing title setting with the title argument.

diff --git a/st.c b/st.c
index 28c083a..2811876 100644
--- a/st.c
+++ b/st.c
_AT_@ -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);
                         }
Received on Sun Jun 09 2013 - 15:54:58 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 09 2013 - 16:00:15 CEST