Browse Source

Fix title initialization

master
Quentin Rameau 6 years ago
committed by Hiltjo Posthuma
parent
commit
0b507bb731
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      x.c

+ 5
- 5
x.c View File

@ -1929,12 +1929,12 @@ main(int argc, char *argv[])
} ARGEND; } ARGEND;
run: run:
if (argc > 0) {
/* eat all remaining arguments */
if (argc > 0) /* eat all remaining arguments */
opt_cmd = argv; 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, ""); setlocale(LC_CTYPE, "");
XSetLocaleModifiers(""); XSetLocaleModifiers("");
cols = MAX(cols, 1); cols = MAX(cols, 1);


Loading…
Cancel
Save