diff options
author | Quentin Rameau <quinq@fifth.space> | 2018-03-16 16:19:18 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-03-16 16:44:30 +0100 |
commit | 0b507bb73138c636fd0ad6f2321624aae1346d58 (patch) | |
tree | c266cd84932f4212955ae8c3ce88155f14764a19 | |
parent | e7ef3c4ce95a21cfcd0988d493f636e1d0115871 (diff) | |
download | st-patched-0b507bb73138c636fd0ad6f2321624aae1346d58.tar.bz2 st-patched-0b507bb73138c636fd0ad6f2321624aae1346d58.tar.xz st-patched-0b507bb73138c636fd0ad6f2321624aae1346d58.zip |
Fix title initialization
-rw-r--r-- | x.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1929,12 +1929,12 @@ main(int argc, char *argv[]) | |||
1929 | } ARGEND; | 1929 | } ARGEND; |
1930 | 1930 | ||
1931 | run: | 1931 | run: |
1932 | if (argc > 0) { | 1932 | if (argc > 0) /* eat all remaining arguments */ |
1933 | /* eat all remaining arguments */ | ||
1934 | opt_cmd = argv; | 1933 | opt_cmd = argv; |
1935 | if (!opt_title && !opt_line) | 1934 | |
1936 | opt_title = basename(xstrdup(argv[0])); | 1935 | if (!opt_title) |
1937 | } | 1936 | opt_title = (opt_line || !opt_cmd) ? "st" : opt_cmd[0]; |
1937 | |||
1938 | setlocale(LC_CTYPE, ""); | 1938 | setlocale(LC_CTYPE, ""); |
1939 | XSetLocaleModifiers(""); | 1939 | XSetLocaleModifiers(""); |
1940 | cols = MAX(cols, 1); | 1940 | cols = MAX(cols, 1); |