diff options
author | Xin LI <delphij@FreeBSD.org> | 2007-06-04 01:42:54 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2007-06-04 01:42:54 +0000 |
commit | 7f074f9c8f37a841d4ed3a3947143d83c9972f81 (patch) | |
tree | ee770081db4ef1d4b6022e0608a222ea35319caa /contrib/less/signal.c | |
parent | 6dcb072b3021f88118ab758d851d01be270f36b2 (diff) |
Notes
Diffstat (limited to 'contrib/less/signal.c')
-rw-r--r-- | contrib/less/signal.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/less/signal.c b/contrib/less/signal.c index d09747884f1a..c19d892b976d 100644 --- a/contrib/less/signal.c +++ b/contrib/less/signal.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2004 Mark Nudelman + * Copyright (C) 1984-2007 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 linenums; extern int wscroll; extern int reading; extern int quit_on_intr; +extern long jump_sline_fraction; /* * Interrupt signal handler. @@ -88,8 +89,6 @@ winch(type) { LSIGNAL(SIGWINCH, winch); sigs |= S_WINCH; - if (reading) - intread(); } #else #ifdef SIGWIND @@ -153,14 +152,13 @@ init_signals(on) #endif #ifdef SIGWINCH (void) LSIGNAL(SIGWINCH, winch); -#else +#endif #ifdef SIGWIND (void) LSIGNAL(SIGWIND, winch); #endif #ifdef SIGQUIT (void) LSIGNAL(SIGQUIT, SIG_IGN); #endif -#endif } else { /* @@ -242,6 +240,7 @@ psignals() if (sc_width != old_width || sc_height != old_height) { wscroll = (sc_height + 1) / 2; + calc_jump_sline(); screen_trashed = 1; } } |