diff options
Diffstat (limited to 'contrib/less/signal.c')
-rw-r--r-- | contrib/less/signal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/less/signal.c b/contrib/less/signal.c index c32e7a1..8b0691f 100644 --- a/contrib/less/signal.c +++ b/contrib/less/signal.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2002 Mark Nudelman + * Copyright (C) 1984-2004 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -34,6 +34,7 @@ extern int lnloop; extern int linenums; extern int wscroll; extern int reading; +extern int quit_on_intr; extern int more_mode; /* @@ -251,6 +252,8 @@ psignals() #endif if (tsignals & S_INTERRUPT) { + if (quit_on_intr) + quit(QUIT_OK); bell(); /* * {{ You may wish to replace the bell() with |