upgrade to 466 version
[platform/upstream/less.git] / jump.c
diff --git a/jump.c b/jump.c
index 075aa64..d7468fe 100755 (executable)
--- a/jump.c
+++ b/jump.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1984-2012  Mark Nudelman
+ * Copyright (C) 1984-2014  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,20 @@ jump_forw()
 }
 
 /*
+ * Jump to the last buffered line in the file.
+ */
+       public void
+jump_forw_buffered()
+{
+       if (ch_end_buffer_seek())
+       {
+               error("Cannot seek to end of buffers", NULL_PARG);
+               return;
+       }
+       jump_line_loc(ch_tell(), sc_height-1);
+}
+
+/*
  * Jump to line n in the file.
  */
        public void
@@ -281,6 +295,9 @@ jump_loc(pos, sline)
                                 */
                                break;
                        }
+#if HILITE_SEARCH
+                       pos = next_unfiltered(pos);
+#endif
                        if (pos >= tpos)
                        {
                                /*