w3m

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

commit 4c1ab60bf8db6ea52f74bfc8824e576a3e383c3e
parent 25750316e3b3ea6e476f9fe5543e9d538f60cd49
Author: ukai <ukai>
Date:   Thu, 31 Jan 2002 04:49:42 +0000

[w3m-dev 02949] fix for #undef USE_MIGEMO
* main.c (dispincsrch): need #ifdef USE_MIGEMO
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 5+++++
Mmain.c | 17+++++++++--------
2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2002-01-31 Fumitoshi UKAI <ukai@debian.or.jp> + + * [w3m-dev 02949] fix for #undef USE_MIGEMO + * main.c (dispincsrch): need #ifdef USE_MIGEMO + 2002-01-31 Fumitoshi UKAI <ukai@debian.or.jp> * [w3m-dev 02946] toggle migemo diff --git a/main.c b/main.c @@ -1427,9 +1427,11 @@ dispincsrch(int ch, Str buf, Lineprop *prop) do_next_search = TRUE; break; +#ifdef USE_MIGEMO case 034: migemo_active = -migemo_active; goto done; +#endif default: if (ch >= 0) @@ -1464,16 +1466,15 @@ dispincsrch(int ch, Str buf, Lineprop *prop) } displayBuffer(Currentbuf, B_FORCE_REDRAW); clear_mark(Currentbuf->currentLine); +#ifdef USE_MIGEMO done: - { - int i; - for (i = 0; str[i] != '\0'; i++) { - if (migemo_active > 0) - prop[i] |= PE_UNDER; - else - prop[i] &= ~PE_UNDER; - } + while (*str++ != '\0') { + if (migemo_active > 0) + *prop++ |= PE_UNDER; + else + *prop++ &= ~PE_UNDER; } +#endif return -1; }