Workaround for chdir resolving symlinks

This commit is contained in:
Ashish Kumar Yadav 2021-07-25 11:00:35 +05:30
parent 22e70e49ef
commit fe6cf64326
2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
# bugs
* term.bot gets messed up when resizing (shrinking) veritcally
* chdir resolves symlink, think of a workaround
# features

View File

@ -2077,7 +2077,7 @@ newterm(const Arg *arg)
break;
case 0:
if (pwd)
chdir(pwd);
setenv("ST_NEWTERM_PWD", pwd, 1);
execlp("st", "st", (char *)NULL);
break;
}