all repos — st @ 0b507bb73138c636fd0ad6f2321624aae1346d58

st (suckless terminal) config

Fix title initialization
Quentin Rameau quinq@fifth.space
commit

0b507bb73138c636fd0ad6f2321624aae1346d58

parent

e7ef3c4ce95a21cfcd0988d493f636e1d0115871

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M x.cx.c

@@ -1929,12 +1929,12 @@ usage();

} 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);