diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-23 21:40:19 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-23 21:40:19 +0000 |
commit | da4c9c4db790a50c7792b837dd39b9cb36da3905 (patch) | |
tree | aa2cdde3d3fb63e661c6136aa761c86ac8e2432b /main.c | |
parent | add label_topline (diff) | |
download | w3m-da4c9c4db790a50c7792b837dd39b9cb36da3905.tar.gz w3m-da4c9c4db790a50c7792b837dd39b9cb36da3905.zip |
add nextpage_topline
Diffstat (limited to '')
-rw-r--r-- | main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |