Introduction
Introduction Statistics Contact Development Disclaimer Help
tFix title initialization - st - [fork] customized build of st, the simple term…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 0b507bb73138c636fd0ad6f2321624aae1346d58
parent e7ef3c4ce95a21cfcd0988d493f636e1d0115871
Author: Quentin Rameau <[email protected]>
Date: Fri, 16 Mar 2018 16:19:18 +0100
Fix title initialization
Diffstat:
M x.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/x.c b/x.c
t@@ -1929,12 +1929,12 @@ main(int argc, char *argv[])
} ARGEND;
run:
- if (argc > 0) {
- /* eat all remaining arguments */
+ if (argc > 0) /* eat all remaining arguments */
opt_cmd = argv;
- if (!opt_title && !opt_line)
- opt_title = basename(xstrdup(argv[0]));
- }
+
+ if (!opt_title)
+ opt_title = (opt_line || !opt_cmd) ? "st" : opt_cmd[0];
+
setlocale(LC_CTYPE, "");
XSetLocaleModifiers("");
cols = MAX(cols, 1);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.