w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 325110610e18a6530e66c28a5a23fe055985c794
parent f89f88e1fcb503914785e8e3f1b1ef1f23a9183e
Author: inu <inu>
Date:   Mon,  1 Jul 2002 10:50:53 +0000

add prec_num to topA/lastA

Diffstat:
MChangeLog | 5+++++
Mmain.c | 14++++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2002-07-01 Dai SAto <satodai@dog.intcul.tohoku.ac.jp> + + * [w3m-dev 03235] topA/lastA with prec_num + * main.c: add prec_num to topA() and lastA() + 2002-06-24 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> * [w3m-dev 03233] "obuf->flag |= RB_IGNORE_P" after <body> tag diff --git a/main.c b/main.c @@ -3273,14 +3273,17 @@ topA(void) HmarkerList *hl = Currentbuf->hmarklist; BufferPoint *po; Anchor *an; - int hseq; + int hseq = 0; if (Currentbuf->firstLine == NULL) return; if (!hl || hl->nmark == 0) return; - hseq = 0; + if (prec_num > hl->nmark) + hseq = hl->nmark - 1; + else if (prec_num > 0) + hseq = prec_num - 1; do { if (hseq >= hl->nmark) return; @@ -3304,14 +3307,17 @@ lastA(void) HmarkerList *hl = Currentbuf->hmarklist; BufferPoint *po; Anchor *an; - int hseq; + int hseq = hl->nmark - 1; if (Currentbuf->firstLine == NULL) return; if (!hl || hl->nmark == 0) return; - hseq = hl->nmark - 1; + if( prec_num >= hl->nmark ) + hseq = 0; + else if( prec_num > 0 ) + hseq = hl->nmark - prec_num; do { if (hseq < 0) return;