aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--main.c16
2 files changed, 17 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 80fbc81..16a70cc 100644
--- 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
@@ -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 $
diff --git a/main.c b/main.c
index 8338db4..4a0ed25 100644
--- a/main.c
+++ b/main.c
@@ -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;