diff options
Diffstat (limited to 'contrib/less/signal.c')
-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 ce3714c..def985d 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. @@ -34,6 +35,7 @@ extern int linenums; extern int wscroll; extern int reading; extern int quit_on_intr; +extern int less_is_more; extern long jump_sline_fraction; /* @@ -58,6 +60,8 @@ u_interrupt(type) if (kbhit()) getkey(); #endif + if (less_is_more) + quit(0); if (reading) intread(); } |