aboutsummaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-05-08 23:45:27 +0000
committerXin LI <delphij@FreeBSD.org>2009-05-08 23:45:27 +0000
commite1193b7bca0eca8d5c2740fdfa576746303bb993 (patch)
treea3b19b698e154070851f613743d2c3b6467b5828 /signal.c
parentad5f463cf975eb6a9c4cb335fc2ce7a84c7d49a7 (diff)
downloadsrc-e1193b7bca0eca8d5c2740fdfa576746303bb993.tar.gz
src-e1193b7bca0eca8d5c2740fdfa576746303bb993.zip
Vendor import of less v429vendor/less/v429
Notes
Notes: svn path=/vendor/less/dist/; revision=191927 svn path=/vendor/less/v429/; revision=191928; tag=vendor/less/v429
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/signal.c b/signal.c
index ce3714c7061c..8f694f869e01 100644
--- a/signal.c
+++ b/signal.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2007 Mark Nudelman
+ * Copyright (C) 1984-2008 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.
@@ -44,6 +44,7 @@ extern long jump_sline_fraction;
u_interrupt(type)
int type;
{
+ bell();
#if OS2
LSIGNAL(SIGINT, SIG_ACK);
#endif
@@ -59,7 +60,7 @@ u_interrupt(type)
getkey();
#endif
if (reading)
- intread();
+ intread(); /* May longjmp */
}
#ifdef SIGTSTP
@@ -251,24 +252,5 @@ psignals()
{
if (quit_on_intr)
quit(QUIT_OK);
- bell();
- /*
- * {{ You may wish to replace the bell() with
- * error("Interrupt", NULL_PARG); }}
- */
-
- /*
- * If we were interrupted while in the "calculating
- * line numbers" loop, turn off line numbers.
- */
- if (lnloop)
- {
- lnloop = 0;
- if (linenums == 2)
- screen_trashed = 1;
- linenums = 0;
- error("Line numbers turned off", NULL_PARG);
- }
-
}
}