aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 21:40:19 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 21:40:19 +0000
commitda4c9c4db790a50c7792b837dd39b9cb36da3905 (patch)
treeaa2cdde3d3fb63e661c6136aa761c86ac8e2432b /main.c
parentadd label_topline (diff)
downloadw3m-da4c9c4db790a50c7792b837dd39b9cb36da3905.tar.gz
w3m-da4c9c4db790a50c7792b837dd39b9cb36da3905.zip
add nextpage_topline
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.c b/main.c
index 2f2d3d1..556484d 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.20 2001/11/23 21:22:02 ukai Exp $ */
+/* $Id: main.c,v 1.21 2001/11/23 21:40:19 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -1110,10 +1110,11 @@ nscroll(int n, int mode)
tlnum = Currentbuf->topLine->linenumber;
llnum = Currentbuf->topLine->linenumber + LASTLINE - 1;
#ifdef NEXTPAGE_TOPLINE
- diff_n = 0;
-#else
- diff_n = n - (tlnum - curtop->linenumber);
+ if (nextpage_topline)
+ diff_n = 0;
+ else
#endif
+ diff_n = n - (tlnum - curtop->linenumber);
if (lnum < tlnum)
lnum = tlnum + diff_n;
if (lnum > llnum)