w3m

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

commit 10576d834ef26324963eb4859d9acab9315374c0
parent 78038e6e1ba461b24056f54b0afc2a0795d46491
Author: ukai <ukai>
Date:   Wed, 16 Jan 2002 19:05:36 +0000

run make indent

Diffstat:
Mlinein.c | 3+--
Mmain.c | 2+-
Msearch.c | 20+++++++++++---------
3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/linein.c b/linein.c @@ -229,8 +229,7 @@ inputLineHistSearch(char *prompt, char *def_str, int flag, Hist *hist, cm_disp_next = -1; } else if (!i_quote && c < 0x20) { /* Control code */ - if (incrfunc == NULL - || (c = incrfunc((int)c, strBuf)) < 0x20) + if (incrfunc == NULL || (c = incrfunc((int)c, strBuf)) < 0x20) (*InputKeymap[(int)c]) (c); if (incrfunc) incrfunc(-1, strBuf); diff --git a/main.c b/main.c @@ -1444,7 +1444,7 @@ dispincsrch(int ch, Str buf) return -1; } else - return 020; /* _prev completion for C-s C-s */ + return 020; /* _prev completion for C-s C-s */ } else if (*str) { RESTORE_BUFPOSITION(&sbuf); diff --git a/search.c b/search.c @@ -6,8 +6,8 @@ static void set_mark(Line *l, int pos, int epos) { - for (; pos < epos && pos < l->len; pos++) - l->propBuf[pos] |= PE_MARK; + for (; pos < epos && pos < l->len; pos++) + l->propBuf[pos] |= PE_MARK; } #ifdef USE_MIGEMO @@ -53,13 +53,13 @@ open_migemo(char *migemo_command) migemor = fdopen(fdr[0], "r"); migemow = fdopen(fdw[1], "w"); return 1; -err2: + err2: close(fdw[0]); close(fdw[1]); -err1: + err1: close(fdr[0]); close(fdr[1]); -err0: + err0: use_migemo = 0; return 0; } @@ -72,11 +72,13 @@ migemostr(char *str) if (open_migemo(migemo_command) == 0) return str; fprintf(migemow, "%s\n", str); -again: + again: if (fflush(migemow) != 0) { switch (errno) { - case EINTR: goto again; - default: goto err; + case EINTR: + goto again; + default: + goto err; } } tmp = Strfgets(migemor); @@ -84,7 +86,7 @@ again: if (tmp->length == 0) goto err; return tmp->ptr; -err: + err: /* XXX: backend migemo is not working? */ init_migemo(); use_migemo = 0;