Make control-c exit when in more compatability mode.

Submitted by:	Scott Long <samsco@mho.com>
This commit is contained in:
Paul Saab 2000-07-14 09:13:35 +00:00
parent 2931df8a40
commit 51525cb020
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63120

View File

@ -8,6 +8,7 @@
* contact the author, see the README file.
*/
/* $FreeBSD$ */
/*
* Routines dealing with signals.
@ -33,6 +34,7 @@ extern int lnloop;
extern int linenums;
extern int wscroll;
extern int reading;
extern int more_mode;
/*
* Interrupt signal handler.
@ -56,6 +58,8 @@ u_interrupt(type)
if (kbhit())
getkey();
#endif
if (more_mode)
quit(0);
if (reading)
intread();
}