diff options
author | ps <ps@FreeBSD.org> | 2000-07-14 09:13:35 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-07-14 09:13:35 +0000 |
commit | 3d1a13821110880d487f70d32e7bdc79047815ac (patch) | |
tree | aa46717a7b6623948c273f543d806927d74b6a34 | |
parent | 7d6550f6888be671e35c1cf39bafd48a7ebc103d (diff) | |
download | FreeBSD-src-3d1a13821110880d487f70d32e7bdc79047815ac.zip FreeBSD-src-3d1a13821110880d487f70d32e7bdc79047815ac.tar.gz |
Make control-c exit when in more compatability mode.
Submitted by: Scott Long <samsco@mho.com>
-rw-r--r-- | contrib/less/signal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/less/signal.c b/contrib/less/signal.c index f044980..708f212 100644 --- a/contrib/less/signal.c +++ b/contrib/less/signal.c @@ -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(); } |