aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-19 17:47:59 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-19 17:47:59 +0000
commit4f2167fb83218d57a11668c6de8b7ec3e0424d81 (patch)
treebdc1faad2811ea00e766f3d53b33aefed03e3f93
parentrc: image_map_list (diff)
downloadw3m-4f2167fb83218d57a11668c6de8b7ec3e0424d81.tar.gz
w3m-4f2167fb83218d57a11668c6de8b7ec3e0424d81.zip
fix indent
Diffstat (limited to '')
-rw-r--r--main.c7
-rw-r--r--map.c12
2 files changed, 8 insertions, 11 deletions
diff --git a/main.c b/main.c
index 98af583..6b5525d 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.144 2002/11/19 17:40:32 ukai Exp $ */
+/* $Id: main.c,v 1.145 2002/11/19 17:47:59 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -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
index 69b47fe..7f8a25b 100644
--- a/map.c
+++ b/map.c
@@ -1,4 +1,4 @@
-/* $Id: map.c,v 1.14 2002/11/19 17:40:34 ukai Exp $ */
+/* $Id: map.c,v 1.15 2002/11/19 17:48:00 ukai Exp $ */
/*
* client-side image maps
*/
@@ -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;
}