aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2014-12-06 07:51:54 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 07:51:54 +0000
commita1b70ec952bc625281983b1e9886e828532c129c (patch)
treeac8c1c35c0205bb301a3021db3db8e45c759c40e
parentMerge branch 'feature/w3m-img-freebsd' (diff)
parentPrevent segfault when editing a textarea field with vi (diff)
downloadw3m-a1b70ec952bc625281983b1e9886e828532c129c.tar.gz
w3m-a1b70ec952bc625281983b1e9886e828532c129c.zip
Merge branch 'bug/textarea-segfault'
Diffstat (limited to '')
-rw-r--r--terms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/terms.c b/terms.c
index ca81d28..672262c 100644
--- a/terms.c
+++ b/terms.c
@@ -637,7 +637,8 @@ reset_tty(void)
writestr(T_se); /* reset terminal */
flush_tty();
TerminalSet(tty, &d_ioval);
- close_tty();
+ if (tty != 2)
+ close_tty();
}
static MySignalHandler