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 /etc.c | |
parent | add label_topline (diff) | |
download | w3m-da4c9c4db790a50c7792b837dd39b9cb36da3905.tar.gz w3m-da4c9c4db790a50c7792b837dd39b9cb36da3905.zip |
add nextpage_topline
Diffstat (limited to '')
-rw-r--r-- | etc.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: etc.c,v 1.6 2001/11/21 19:24:35 ukai Exp $ */ +/* $Id: etc.c,v 1.7 2001/11/23 21:40:19 ukai Exp $ */ #include "fm.h" #include <pwd.h> #include "myctype.h" @@ -138,11 +138,12 @@ lineSkip(Buffer * buf, Line * line, int offset, int last) Line *l; l = currentLineSkip(buf, line, offset, last); -#ifndef NEXTPAGE_TOPLINE - for (i = (LASTLINE - 1) - (buf->lastLine->linenumber - l->linenumber); - i > 0 && l->prev != NULL; - i--, l = l->prev); +#ifdef NEXTPAGE_TOPLINE + if (! nextpage_topline) #endif + for (i = (LASTLINE - 1) - (buf->lastLine->linenumber - l->linenumber); + i > 0 && l->prev != NULL; + i--, l = l->prev); return l; } |