diff options
| author | Christoph Lohmann <20h@r-36.net> | 2012-09-05 00:08:13 +0200 |
|---|---|---|
| committer | Christoph Lohmann <20h@r-36.net> | 2012-09-05 00:08:13 +0200 |
| commit | 67c1a23053666dbac6b1ff9b17698f59b6b27887 (patch) | |
| tree | 7ab841ca2a4a4258279aad0aae15f7938e1e141e /st.c | |
| parent | e09709d92d89c8593f7390f12dc22fdc563eb57f (diff) | |
| download | st-67c1a23053666dbac6b1ff9b17698f59b6b27887.tar.gz st-67c1a23053666dbac6b1ff9b17698f59b6b27887.zip | |
Fixing the resizing behaviour.
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -739,6 +739,10 @@ execsh(void) { | |||
| 739 | char **args; | 739 | char **args; |
| 740 | char *envshell = getenv("SHELL"); | 740 | char *envshell = getenv("SHELL"); |
| 741 | 741 | ||
| 742 | unsetenv("COLUMNS"); | ||
| 743 | unsetenv("LINES"); | ||
| 744 | unsetenv("TERMCAP"); | ||
| 745 | |||
| 742 | DEFAULT(envshell, SHELL); | 746 | DEFAULT(envshell, SHELL); |
| 743 | putenv("TERM="TNAME); | 747 | putenv("TERM="TNAME); |
| 744 | args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL}; | 748 | args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL}; |
