add nextpage_topline

This commit is contained in:
Fumitoshi UKAI
2001-11-23 21:40:19 +00:00
parent 67012ecb75
commit da4c9c4db7
5 changed files with 33 additions and 13 deletions

11
etc.c
View File

@@ -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;
}