]> Sergey Matveev's repositories - st.git/commitdiff
Fixing the resizing behaviour.
authorChristoph Lohmann <20h@r-36.net>
Tue, 4 Sep 2012 22:08:13 +0000 (00:08 +0200)
committerChristoph Lohmann <20h@r-36.net>
Tue, 4 Sep 2012 22:08:13 +0000 (00:08 +0200)
st.c

diff --git a/st.c b/st.c
index a2564f8c38c50ed271cf6e4f815f53a1fb460717..cf329fd385b8961b2ac3e6cb20a2f2771adbdddf 100644 (file)
--- 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};