Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
e09709d
)
Fixing the resizing behaviour.
author
Christoph Lohmann <
[email protected]
>
Tue, 4 Sep 2012 22:08:13 +0000
(
00:08
+0200)
committer
Christoph Lohmann <
[email protected]
>
Tue, 4 Sep 2012 22:08:13 +0000
(
00:08
+0200)
st.c
diff
|
blob
|
history
diff --git
a/st.c
b/st.c
index
a2564f8
..
cf329fd
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};