tFixing the resizing behaviour. - st - [fork] customized build of st, the simpl… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 67c1a23053666dbac6b1ff9b17698f59b6b27887 | |
parent e09709d92d89c8593f7390f12dc22fdc563eb57f | |
Author: Christoph Lohmann <[email protected]> | |
Date: Wed, 5 Sep 2012 00:08:13 +0200 | |
Fixing the resizing behaviour. | |
Diffstat: | |
M st.c | 4 ++++ | |
1 file changed, 4 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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}; |