From 51525cb0209d650ec6d5b1ec8662aa812bdbb2c6 Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Fri, 14 Jul 2000 09:13:35 +0000 Subject: [PATCH] Make control-c exit when in more compatability mode. Submitted by: Scott Long --- contrib/less/signal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/less/signal.c b/contrib/less/signal.c index f044980988ea..708f2120562f 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(); }