diff options
author | delphij <delphij@FreeBSD.org> | 2016-01-04 00:22:34 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2016-01-04 00:22:34 +0000 |
commit | 479faf106b9c06110ca6358bfbd0ef45b838cbc8 (patch) | |
tree | 8f43d5492b0b0c6dbf3a7b8f98085e8dd6d97a78 /jump.c | |
parent | bacf225f7dc611ee5fc7ea2d1ae9e96962de0548 (diff) | |
download | FreeBSD-src-479faf106b9c06110ca6358bfbd0ef45b838cbc8.zip FreeBSD-src-479faf106b9c06110ca6358bfbd0ef45b838cbc8.tar.gz |
Vendor import of less v481.
Diffstat (limited to 'jump.c')
-rw-r--r-- | jump.c | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -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) { /* |