aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-30 16:31:56 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-30 16:31:56 +0000
commit7226ac9de49ccab715349c16d6dda87f5aefb665 (patch)
tree14f6ad913c0305ca3a9ab9aadc208e39d2a16ed9 /file.c
parent[w3m-dev 03714] -cols 1 -dump -o fold_line=1 (diff)
downloadw3m-7226ac9de49ccab715349c16d6dda87f5aefb665.tar.gz
w3m-7226ac9de49ccab715349c16d6dda87f5aefb665.zip
[w3m-dev 03715] initial currentLine when pager mode.
* file.c (getNextPage): fix cur From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 317aa45..7a15bb8 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.214 2003/01/30 16:29:13 ukai Exp $ */
+/* $Id: file.c,v 1.215 2003/01/30 16:32:00 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -7254,7 +7254,7 @@ getNextPage(Buffer *buf, int plen)
lineBuf2->length, FOLD_BUFFER_WIDTH, nlines);
if (!top) {
top = buf->firstLine;
- cur = buf->currentLine;
+ cur = top;
}
if (buf->lastLine->real_linenumber - buf->firstLine->real_linenumber
>= PagerMax) {