From 5297f4bc59da861bbe3beb5ee12839fa05e79882 Mon Sep 17 00:00:00 2001 From: delphij Date: Sun, 20 Aug 2006 15:49:51 +0000 Subject: Import less v394 --- contrib/less/signal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'contrib/less/signal.c') diff --git a/contrib/less/signal.c b/contrib/less/signal.c index a641d99..d097478 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 -- cgit v1.1