summaryrefslogtreecommitdiffstats
path: root/jump.c
diff options
context:
space:
mode:
Diffstat (limited to 'jump.c')
-rw-r--r--jump.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/jump.c b/jump.c
index 075aa64..8373d8b 100644
--- a/jump.c
+++ b/jump.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2012 Mark Nudelman
+ * Copyright (C) 1984-2015 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.
@@ -61,6 +61,24 @@ jump_forw()
}
/*
+ * Jump to the last buffered line in the file.
+ */
+ public void
+jump_forw_buffered()
+{
+ POSITION end;
+
+ if (ch_end_buffer_seek())
+ {
+ error("Cannot seek to end of buffers", NULL_PARG);
+ return;
+ }
+ end = ch_tell();
+ if (end != NULL_POSITION && end > 0)
+ jump_line_loc(end-1, sc_height-1);
+}
+
+/*
* Jump to line n in the file.
*/
public void
@@ -281,6 +299,9 @@ jump_loc(pos, sline)
*/
break;
}
+#if HILITE_SEARCH
+ pos = next_unfiltered(pos);
+#endif
if (pos >= tpos)
{
/*
OpenPOWER on IntegriCloud