aboutsummaryrefslogtreecommitdiff
path: root/contrib/less/jump.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/jump.c')
-rw-r--r--contrib/less/jump.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/less/jump.c b/contrib/less/jump.c
index c2cd3bbb4795..095f652ef35d 100644
--- a/contrib/less/jump.c
+++ b/contrib/less/jump.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2025 Mark Nudelman
+ * Copyright (C) 1984-2026 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.
@@ -194,7 +194,7 @@ static void after_header_message(void)
return;
last_msg = now;
#endif
- bell();
+ lbell();
/* {{ This message displays before the file text is updated, which is not a good UX. }} */
/** error("Cannot display text before header; use --header=- to disable header", NULL_PARG); */
}
@@ -243,9 +243,9 @@ public void jump_loc(POSITION pos, int sline)
*/
nline -= sindex;
if (nline > 0)
- forw(nline, position(BOTTOM_PLUS_ONE), TRUE, FALSE, FALSE, 0);
+ forw(nline, position(BOTTOM_PLUS_ONE), TRUE, FALSE, FALSE, FALSE, 0);
else
- back(-nline, position(TOP), TRUE, FALSE, FALSE);
+ back(-nline, position(TOP), TRUE, FALSE, FALSE, FALSE);
#if HILITE_SEARCH
if (show_attn)
repaint_hilite(TRUE);
@@ -286,7 +286,7 @@ public void jump_loc(POSITION pos, int sline)
* close enough to the current screen
* that we can just scroll there after all.
*/
- forw(sc_height-sindex+nline-1, bpos, TRUE, FALSE, FALSE, 0);
+ forw(sc_height-sindex+nline-1, bpos, TRUE, FALSE, FALSE, FALSE, 0);
#if HILITE_SEARCH
if (show_attn)
repaint_hilite(TRUE);
@@ -308,7 +308,7 @@ public void jump_loc(POSITION pos, int sline)
lastmark();
squished = FALSE;
screen_trashed_num(0);
- forw(sc_height-1, pos, TRUE, FALSE, FALSE, sindex-nline);
+ forw(sc_height-1, pos, TRUE, FALSE, FALSE, FALSE, sindex-nline);
} else
{
/*
@@ -337,7 +337,7 @@ public void jump_loc(POSITION pos, int sline)
* close enough to the current screen
* that we can just scroll there after all.
*/
- back(nline, tpos, TRUE, FALSE, FALSE);
+ back(nline, tpos, TRUE, FALSE, FALSE, FALSE);
#if HILITE_SEARCH
if (show_attn)
repaint_hilite(TRUE);
@@ -347,11 +347,11 @@ public void jump_loc(POSITION pos, int sline)
}
lastmark();
if (!top_scroll)
- clear();
+ lclear();
else
home();
screen_trashed_num(0);
add_back_pos(pos);
- back(sc_height-1, pos, TRUE, FALSE, FALSE);
+ back(sc_height-1, pos, TRUE, FALSE, FALSE, FALSE);
}
}