Deleted Added
full compact
forwback.c (367516) forwback.c (369759)
1/* $FreeBSD: stable/11/contrib/less/forwback.c 367516 2020-11-09 05:20:02Z delphij $ */
1/* $FreeBSD: stable/11/contrib/less/forwback.c 369759 2021-05-09 02:33:58Z git2svn $ */
2/*
2/*
3 * Copyright (C) 1984-2020 Mark Nudelman
3 * Copyright (C) 1984-2021 Mark Nudelman
4 *
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Less License, as specified in the README file.
7 *
8 * For more information, see the README file.
9 */
10
11

--- 32 unchanged lines hidden (view full) ---

44#endif
45
46/*
47 * Sound the bell to indicate user is trying to move past end of file.
48 */
49 static void
50eof_bell(VOID_PARAM)
51{
4 *
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Less License, as specified in the README file.
7 *
8 * For more information, see the README file.
9 */
10
11

--- 32 unchanged lines hidden (view full) ---

44#endif
45
46/*
47 * Sound the bell to indicate user is trying to move past end of file.
48 */
49 static void
50eof_bell(VOID_PARAM)
51{
52#if HAVE_TIME
53 static time_type last_eof_bell = 0;
54 time_type now = get_time();
55 if (now == last_eof_bell) /* max once per second */
56 return;
57 last_eof_bell = now;
58#endif
52 if (quiet == NOT_QUIET)
53 bell();
54 else
55 vbell();
56}
57
58/*
59 * Check to see if the end of file is currently displayed.

--- 124 unchanged lines hidden (view full) ---

184 */
185 pos_clear();
186 add_forw_pos(pos);
187 force = 1;
188 if (top_scroll)
189 {
190 clear();
191 home();
59 if (quiet == NOT_QUIET)
60 bell();
61 else
62 vbell();
63}
64
65/*
66 * Check to see if the end of file is currently displayed.

--- 124 unchanged lines hidden (view full) ---

191 */
192 pos_clear();
193 add_forw_pos(pos);
194 force = 1;
195 if (top_scroll)
196 {
197 clear();
198 home();
192 } else if (!first_time)
199 } else if (!first_time && !is_filtering())
193 {
194 putstr("...skipping...\n");
195 }
196 }
197 }
198
199 while (--n >= 0)
200 {

--- 267 unchanged lines hidden ---
200 {
201 putstr("...skipping...\n");
202 }
203 }
204 }
205
206 while (--n >= 0)
207 {

--- 267 unchanged lines hidden ---