w3m

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

commit c06eead3109ebc6544ae62b95b22a335e2e9eed1
parent 6295cbacad6f778a9205a1f1f2cc590d9d640e36
Author: ukai <ukai>
Date:   Tue, 19 Nov 2002 17:47:59 +0000

fix indent

Diffstat:
Mmain.c | 5+----
Mmap.c | 10+++++-----
2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/main.c b/main.c @@ -3246,10 +3246,7 @@ _followForm(int submit) buf->form_submit = save_submit_formlist(fi); } } - else if ((fi->parent->method == FORM_METHOD_INTERNAL && - (!Strcmp_charp(fi->parent->action, "map") || - !Strcmp_charp(fi->parent->action, "none"))) || - Currentbuf->bufferprop & BP_INTERNAL) { /* internal */ + else if ((fi->parent->method == FORM_METHOD_INTERNAL && (!Strcmp_charp(fi->parent->action, "map") || !Strcmp_charp(fi->parent->action, "none"))) || Currentbuf->bufferprop & BP_INTERNAL) { /* internal */ do_internal(tmp2->ptr, tmp->ptr); } else { diff --git a/map.c b/map.c @@ -105,23 +105,23 @@ searchMapArea(Buffer *buf, MapList *ml, Anchor *a_img) if (!(ml && ml->area && ml->area->nitem)) return -1; - if (! getMapXY(buf, a_img, &px, &py)) + if (!getMapXY(buf, a_img, &px, &py)) return -1; - n = - ml->area->nitem; + n = -ml->area->nitem; for (i = 0, al = ml->area->first; al != NULL; i++, al = al->next) { a = (MapArea *) al->ptr; if (!a) continue; if (n < 0 && inMapArea(a, px, py)) { if (a->shape == SHAPE_DEFAULT) { - if (n == - ml->area->nitem) + if (n == -ml->area->nitem) n = -i; } else n = i; } } - if (n == - ml->area->nitem) + if (n == -ml->area->nitem) return nearestMapArea(ml, px, py); else if (n < 0) return -n; @@ -200,7 +200,7 @@ retrieveCurrentMap(Buffer *buf) return NULL; fi = (FormItemList *)a->url; if (fi->parent->method == FORM_METHOD_INTERNAL && - !Strcmp_charp(fi->parent->action, "map")) + !Strcmp_charp(fi->parent->action, "map")) return a; return NULL; }