commit - e7ef3c4ce95a21cfcd0988d493f636e1d0115871
commit + 0b507bb73138c636fd0ad6f2321624aae1346d58
blob - 06e53d389c149459647be3fd1a203bdded4fc812
blob + d0b26acf1b3be29aafaf82d3a888aacb4e35e6f9
--- x.c
+++ x.c
} 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);