diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 07:51:54 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 07:51:54 +0000 |
commit | a1b70ec952bc625281983b1e9886e828532c129c (patch) | |
tree | ac8c1c35c0205bb301a3021db3db8e45c759c40e | |
parent | Merge branch 'feature/w3m-img-freebsd' (diff) | |
parent | Prevent segfault when editing a textarea field with vi (diff) | |
download | w3m-a1b70ec952bc625281983b1e9886e828532c129c.tar.gz w3m-a1b70ec952bc625281983b1e9886e828532c129c.zip |
Merge branch 'bug/textarea-segfault'
-rw-r--r-- | terms.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |