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.c9
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;
}
}