w3m

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

commit ab52a16e39a4b4a34228334af0920908f98f56d8
parent ca6e57e69edcffae7cd324f7b4f16c3b02b1251b
Author: ukai <ukai>
Date:   Thu, 23 Jan 2003 18:38:04 +0000

fix indent

Diffstat:
Mbuffer.c | 2+-
Mdisplay.c | 17++++++++++-------
Metc.c | 2+-
Mfile.c | 12++++++------
Mmain.c | 3++-
5 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/buffer.c b/buffer.c @@ -561,7 +561,7 @@ reshapeBuffer(Buffer *buf) int n; gotoRealLine(buf, sbuf.currentLine->real_linenumber); n = (buf->currentLine->linenumber - buf->topLine->linenumber) - - (sbuf.currentLine->linenumber - sbuf.topLine->linenumber); + - (sbuf.currentLine->linenumber - sbuf.topLine->linenumber); if (n) { buf->topLine = lineSkip(buf, buf->topLine, n, FALSE); gotoRealLine(buf, sbuf.currentLine->real_linenumber); diff --git a/display.c b/display.c @@ -364,7 +364,9 @@ displayBuffer(Buffer *buf, int mode) if (buf->height == 0) buf->height = LASTLINE + 1; if ((buf->width != INIT_BUFFER_WIDTH && (buf->type && - !strcmp(buf->type, "text/html") || FoldLine)) || buf->need_reshape) { + !strcmp(buf->type, "text/html") + || FoldLine)) + || buf->need_reshape) { buf->need_reshape = TRUE; reshapeBuffer(buf); } @@ -1260,8 +1262,7 @@ cursorUp(Buffer *buf, int n) } cursorUp0(buf, n); while (buf->currentLine->prev && buf->currentLine->bpos && - buf->currentLine->bwidth >= - buf->currentColumn + buf->visualpos) + buf->currentLine->bwidth >= buf->currentColumn + buf->visualpos) cursorUp0(buf, n); } @@ -1293,8 +1294,8 @@ cursorDown(Buffer *buf, int n) } cursorDown0(buf, n); while (buf->currentLine->next && buf->currentLine->next->bpos && - buf->currentLine->bwidth + buf->currentLine->width < - buf->currentColumn + buf->visualpos) + buf->currentLine->bwidth + buf->currentLine->width < + buf->currentColumn + buf->visualpos) cursorDown0(buf, n); } @@ -1389,7 +1390,9 @@ cursorLeft(Buffer *buf, int n) cpos = COLPOS(l, buf->pos); buf->visualpos = l->bwidth + cpos - buf->currentColumn; if (buf->visualpos - l->bwidth < 0 && n) { - columnSkip(buf, -n + buf->visualpos - l->bwidth - (buf->visualpos - l->bwidth) % n); + columnSkip(buf, + -n + buf->visualpos - l->bwidth - (buf->visualpos - + l->bwidth) % n); buf->visualpos = l->bwidth + cpos - buf->currentColumn; } buf->cursorX = buf->visualpos - l->bwidth; @@ -1464,7 +1467,7 @@ arrangeLine(Buffer *buf) return; buf->cursorY = buf->currentLine->linenumber - buf->topLine->linenumber; i = columnPos(buf->currentLine, buf->currentColumn + buf->visualpos - - buf->currentLine->bwidth); + - buf->currentLine->bwidth); cpos = COLPOS(buf->currentLine, i) - buf->currentColumn; if (cpos >= 0) { buf->cursorX = cpos; diff --git a/etc.c b/etc.c @@ -240,7 +240,7 @@ checkType(Str s, Lineprop **oprop #ifdef USE_ANSI_COLOR , Linecolor **ocolor #endif - ) + ) { Lineprop mode; Lineprop effect = PE_NORMAL; diff --git a/file.c b/file.c @@ -658,7 +658,7 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu) #ifdef USE_ANSI_COLOR , NULL #endif - ); + ); Strcat(tmp, lineBuf2); if (thru) addnewline(newBuf, lineBuf2->ptr, propBuffer, @@ -6059,9 +6059,9 @@ extern Lineprop NullProp[]; static void addnewline2(Buffer *buf, char *line, Lineprop *prop, #ifdef USE_ANSI_COLOR - Linecolor *color, + Linecolor *color, #endif - int pos, int nlines) + int pos, int nlines) { Line *l; l = New(Line); @@ -6885,7 +6885,7 @@ loadBuffer(URLFile *uf, Buffer *volatile newBuf) #ifdef USE_ANSI_COLOR , &colorBuffer #endif - ); + ); addnewline(newBuf, lineBuf2->ptr, propBuffer, #ifdef USE_ANSI_COLOR colorBuffer, @@ -7258,8 +7258,8 @@ getNextPage(Buffer *buf, int plen) #ifdef USE_ANSI_COLOR , &colorBuffer #endif - ); - addnewline(buf, lineBuf2->ptr, propBuffer, + ); + addnewline(buf, lineBuf2->ptr, propBuffer, #ifdef USE_ANSI_COLOR colorBuffer, #endif diff --git a/main.c b/main.c @@ -2487,7 +2487,8 @@ linend(void) { if (Currentbuf->firstLine == NULL) return; - while (Currentbuf->currentLine->next && Currentbuf->currentLine->next->bpos) + while (Currentbuf->currentLine->next + && Currentbuf->currentLine->next->bpos) cursorDown0(Currentbuf, 1); Currentbuf->pos = Currentbuf->currentLine->len - 1; arrangeCursor(Currentbuf);