mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-25 16:35:46 +01:00
Fixing title setting with the title argument.
This commit is contained in:
parent
369734c80c
commit
5d3318c0c7
1 changed files with 1 additions and 1 deletions
2
st.c
2
st.c
|
@ -3639,7 +3639,7 @@ main(int argc, char *argv[]) {
|
||||||
/* eat all remaining arguments */
|
/* eat all remaining arguments */
|
||||||
if(argc > 1) {
|
if(argc > 1) {
|
||||||
opt_cmd = &argv[1];
|
opt_cmd = &argv[1];
|
||||||
if(argv[1] != NULL) {
|
if(argv[1] != NULL && opt_title == NULL) {
|
||||||
titles = strdup(argv[1]);
|
titles = strdup(argv[1]);
|
||||||
opt_title = basename(titles);
|
opt_title = basename(titles);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue