diff options
author | delphij <delphij@FreeBSD.org> | 2009-05-08 23:45:27 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-05-08 23:45:27 +0000 |
commit | 40472e4d24727eb8c2cf003fa10c3d4c6a89e22b (patch) | |
tree | a3b19b698e154070851f613743d2c3b6467b5828 /signal.c | |
parent | d069efd47cacc3156036ed37d5532d6a1d4f55c3 (diff) | |
download | FreeBSD-src-40472e4d24727eb8c2cf003fa10c3d4c6a89e22b.zip FreeBSD-src-40472e4d24727eb8c2cf003fa10c3d4c6a89e22b.tar.gz |
Vendor import of less v429
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 24 |
1 files changed, 3 insertions, 21 deletions
@@ -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); - } - } } |