fix indent

This commit is contained in:
Fumitoshi UKAI
2002-11-05 17:12:02 +00:00
parent a772c51a16
commit d93f1df6c4
4 changed files with 40 additions and 40 deletions
+6 -5
View File
@@ -1,4 +1,4 @@
/* $Id: display.c,v 1.26 2002/11/05 17:10:05 ukai Exp $ */ /* $Id: display.c,v 1.27 2002/11/05 17:12:02 ukai Exp $ */
#include <signal.h> #include <signal.h>
#include "fm.h" #include "fm.h"
@@ -1221,10 +1221,11 @@ arrangeCursor(Buffer *buf)
return; return;
/* Arrange line */ /* Arrange line */
if (buf->currentLine->linenumber - buf->topLine->linenumber >= LASTLINE - if (buf->currentLine->linenumber - buf->topLine->linenumber >= LASTLINE -
buf->rootY || buf->currentLine->linenumber < buf->topLine->linenumber) { buf->rootY
/* || buf->currentLine->linenumber < buf->topLine->linenumber) {
buf->topLine = buf->currentLine; /*
*/ * buf->topLine = buf->currentLine;
*/
buf->topLine = lineSkip(buf, buf->currentLine, 0, FALSE); buf->topLine = lineSkip(buf, buf->currentLine, 0, FALSE);
} }
/* Arrange column */ /* Arrange column */
+3 -2
View File
@@ -1,4 +1,4 @@
/* $Id: etc.c,v 1.31 2002/11/05 17:10:05 ukai Exp $ */ /* $Id: etc.c,v 1.32 2002/11/05 17:12:02 ukai Exp $ */
#include "fm.h" #include "fm.h"
#include <pwd.h> #include <pwd.h>
#include "myctype.h" #include "myctype.h"
@@ -92,7 +92,8 @@ lineSkip(Buffer *buf, Line *line, int offset, int last)
if (!nextpage_topline) if (!nextpage_topline)
#endif #endif
for (i = (LASTLINE - 1 - buf->rootY) - (buf->lastLine->linenumber for (i = (LASTLINE - 1 - buf->rootY) - (buf->lastLine->linenumber
- l->linenumber); i > 0 && l->prev != NULL; i--, l = l->prev) ; - l->linenumber);
i > 0 && l->prev != NULL; i--, l = l->prev) ;
return l; return l;
} }
+17 -19
View File
@@ -1,4 +1,4 @@
/* $Id: main.c,v 1.118 2002/11/05 17:10:06 ukai Exp $ */ /* $Id: main.c,v 1.119 2002/11/05 17:12:02 ukai Exp $ */
#define MAINPROGRAM #define MAINPROGRAM
#include "fm.h" #include "fm.h"
#include <signal.h> #include <signal.h>
@@ -91,8 +91,8 @@ void set_buffer_environ(Buffer *);
static void _followForm(int); static void _followForm(int);
static void _goLine(char *); static void _goLine(char *);
static void _newT(void); static void _newT(void);
static void followTab(TabBuffer *tab); static void followTab(TabBuffer * tab);
static void moveTab(TabBuffer *t, TabBuffer *t2, int right); static void moveTab(TabBuffer * t, TabBuffer * t2, int right);
static int check_target = TRUE; static int check_target = TRUE;
#define PREC_NUM (prec_num ? prec_num : 1) #define PREC_NUM (prec_num ? prec_num : 1)
#define PREC_LIMIT 10000 #define PREC_LIMIT 10000
@@ -1360,7 +1360,8 @@ pgBack(void)
{ {
#ifdef VI_PREC_NUM #ifdef VI_PREC_NUM
if (vi_prec_num) if (vi_prec_num)
nscroll(-searchKeyNum() * (LASTLINE - Currentbuf->rootY - 1), B_NORMAL); nscroll(-searchKeyNum() * (LASTLINE - Currentbuf->rootY - 1),
B_NORMAL);
else else
#endif #endif
nscroll(-(prec_num ? searchKeyNum() : searchKeyNum() nscroll(-(prec_num ? searchKeyNum() : searchKeyNum()
@@ -4687,8 +4688,7 @@ posTab(int x, int y)
if (col <= 0) if (col <= 0)
return NULL; return NULL;
n = x * N_TAB / col + y * N_TAB; n = x * N_TAB / col + y * N_TAB;
for (t = FirstTab, i = 0; t && i < n; t = t->nextTab, i++) for (t = FirstTab, i = 0; t && i < n; t = t->nextTab, i++) ;
;
return t; return t;
} }
@@ -5405,7 +5405,7 @@ _newT(void)
int i; int i;
tag = newTab(); tag = newTab();
if (! tag) if (!tag)
return; return;
buf = newBuffer(Currentbuf->width); buf = newBuffer(Currentbuf->width);
@@ -5446,13 +5446,12 @@ numTab(int n)
return FirstTab; return FirstTab;
if (nTab <= 1) if (nTab <= 1)
return NULL; return NULL;
for (tab = FirstTab, i = 1; tab && i < n; tab = tab->nextTab, i++) for (tab = FirstTab, i = 1; tab && i < n; tab = tab->nextTab, i++) ;
;
return tab; return tab;
} }
TabBuffer * TabBuffer *
deleteTab(TabBuffer *tab) deleteTab(TabBuffer * tab)
{ {
Buffer *buf, *next; Buffer *buf, *next;
@@ -5532,14 +5531,14 @@ prevT(void)
} }
void void
followTab(TabBuffer *tab) followTab(TabBuffer * tab)
{ {
Buffer *buf; Buffer *buf;
Anchor *a; Anchor *a;
#ifdef USE_IMAGE #ifdef USE_IMAGE
a = retrieveCurrentImg(Currentbuf); a = retrieveCurrentImg(Currentbuf);
if (! (a && a->image && a->image->map)) if (!(a && a->image && a->image->map))
#endif #endif
a = retrieveCurrentAnchor(Currentbuf); a = retrieveCurrentAnchor(Currentbuf);
if (a == NULL) if (a == NULL)
@@ -5587,7 +5586,7 @@ tabA(void)
} }
static void static void
tabURL0(TabBuffer *tab, char *prompt, int relative) tabURL0(TabBuffer * tab, char *prompt, int relative)
{ {
Buffer *buf; Buffer *buf;
@@ -5637,7 +5636,7 @@ tabrURL(void)
} }
void void
moveTab(TabBuffer *t, TabBuffer *t2, int right) moveTab(TabBuffer * t, TabBuffer * t2, int right)
{ {
if (!t || !t2 || t == t2) if (!t || !t2 || t == t2)
return; return;
@@ -5679,8 +5678,8 @@ tabR(void)
TabBuffer *tab; TabBuffer *tab;
int i; int i;
for (tab = CurrentTab, i = 0; tab && i < PREC_NUM; tab = tab->nextTab, i++) for (tab = CurrentTab, i = 0; tab && i < PREC_NUM;
; tab = tab->nextTab, i++) ;
moveTab(CurrentTab, tab ? tab : LastTab, TRUE); moveTab(CurrentTab, tab ? tab : LastTab, TRUE);
} }
@@ -5690,8 +5689,7 @@ tabL(void)
TabBuffer *tab; TabBuffer *tab;
int i; int i;
for (tab = CurrentTab, i = 0; tab && i < PREC_NUM; tab = tab->prevTab, i++) for (tab = CurrentTab, i = 0; tab && i < PREC_NUM;
; tab = tab->prevTab, i++) ;
moveTab(CurrentTab, tab ? tab : FirstTab, FALSE); moveTab(CurrentTab, tab ? tab : FirstTab, FALSE);
} }
+2 -2
View File
@@ -1,4 +1,4 @@
/* $Id: map.c,v 1.9 2002/11/05 17:10:07 ukai Exp $ */ /* $Id: map.c,v 1.10 2002/11/05 17:12:02 ukai Exp $ */
/* /*
* client-side image maps * client-side image maps
*/ */
@@ -60,7 +60,7 @@ inMapArea(MapArea * a, int x, int y)
#endif #endif
MapArea * MapArea *
follow_map_menu(Buffer *buf, struct parsed_tagarg *arg, Anchor *a_img, int x, follow_map_menu(Buffer *buf, struct parsed_tagarg * arg, Anchor *a_img, int x,
int y) int y)
{ {
MapList *ml; MapList *ml;