From: Christoph Lohmann <20h@r-36.net> Date: Tue, 4 Sep 2012 22:08:13 +0000 (+0200) Subject: Fixing the resizing behaviour. X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=commitdiff_plain;h=67c1a23053666dbac6b1ff9b17698f59b6b27887 Fixing the resizing behaviour. --- diff --git a/st.c b/st.c index a2564f8..cf329fd 100644 --- a/st.c +++ b/st.c @@ -739,6 +739,10 @@ execsh(void) { char **args; char *envshell = getenv("SHELL"); + unsetenv("COLUMNS"); + unsetenv("LINES"); + unsetenv("TERMCAP"); + DEFAULT(envshell, SHELL); putenv("TERM="TNAME); args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};