[w3m-dev 04133] mouse_end() should preced reset_tty()?

* terms.c (reset_exit): mouse_end() should precede reset_tty()
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2005-01-18 16:37:58 +00:00
parent ab1f4c4d96
commit 57d2818318
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: terms.c,v 1.52 2004/07/15 16:32:38 ukai Exp $ */
/* $Id: terms.c,v 1.53 2005/01/18 16:38:01 ukai Exp $ */
/*
* An original curses library for EUC-kanji by Akinori ITO, December 1989
* revised by Akinori ITO, January 1995
@@ -596,11 +596,11 @@ reset_tty(void)
MySignalHandler
reset_exit(SIGNAL_ARG)
{
reset_tty();
#ifdef USE_MOUSE
if (mouseActive)
mouse_end();
#endif /* USE_MOUSE */
reset_tty();
w3m_exit(0);
SIGNAL_RETURN;
}