diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | main.c | 16 |
2 files changed, 17 insertions, 6 deletions
@@ -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 @@ -3514,4 +3519,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.392 2002/06/24 13:32:10 ukai Exp $ +$Id: ChangeLog,v 1.393 2002/07/01 10:50:53 inu Exp $ @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.107 2002/06/09 16:09:25 ukai Exp $ */ +/* $Id: main.c,v 1.108 2002/07/01 10:51:58 inu Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -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; |