summaryrefslogtreecommitdiff
path: root/more.c
diff options
context:
space:
mode:
Diffstat (limited to 'more.c')
-rw-r--r--more.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/more.c b/more.c
index 19a4ac2..3461bc0 100644
--- a/more.c
+++ b/more.c
@@ -47,6 +47,7 @@ struct more_file {
fpos_t *tlines;
size_t nlines;
size_t mark[26];
+ size_t tick;
size_t nbytes;
size_t *bytepos;
char *buf;
@@ -288,6 +289,7 @@ static void more_scroll(struct more_file *mf, int count, int multiple)
if (abs(by) > more_lines) {
more_clear(CLEAR);
+ mf->tick = mf->topline;
}
if (by < 0) {
@@ -329,6 +331,10 @@ static void jump(struct more_file *mf)
mf->topline = mf->mark[c - 'a'];
more_refresh(mf);
}
+ if (c == '\'') {
+ mf->topline = mf->tick;
+ more_refresh(mf);
+ }
}
static void more_help(void)