aboutsummaryrefslogtreecommitdiff
path: root/contrib/less/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/signal.c')
-rw-r--r--contrib/less/signal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/less/signal.c b/contrib/less/signal.c
index a641d99ee9de..d09747884f1a 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.
@@ -33,6 +33,7 @@ extern int lnloop;
extern int linenums;
extern int wscroll;
extern int reading;
+extern int quit_on_intr;
/*
* Interrupt signal handler.
@@ -247,6 +248,8 @@ psignals()
#endif
if (tsignals & S_INTERRUPT)
{
+ if (quit_on_intr)
+ quit(QUIT_OK);
bell();
/*
* {{ You may wish to replace the bell() with