On Fri, Aug 04, 2000 at 08:57:40PM +0200, Dominik Geisel wrote:
> -------BEGIN ERROR--------
> gcc -O -Wall -I./gc -I. -c -o display.o display.c
> display.c: In function `cursorRight':
> display.c:720: `PC_KANJI2' undeclared (first use in this function)
> display.c:720: (Each undeclared identifier is reported only once
> display.c:720: for each function it appears in.)
> make[1]: *** [display.o] Error 1
> make[1]: Leaving directory `/root/w3m-0.1.10'
> make: *** [all] Error 2
> -------END ERROR--------
This patch should make everything work.
--timball
--snip--snip--snip--
--- display.c.old Fri Aug 4 14:17:23 2000
+++ display.c Fri Aug 4 14:17:58 2000
@@ -717,8 +717,10 @@
}
else {
buf->pos = l->len -1;
+#ifdef JP_CHARSET
if (CharType(p[buf->pos]) == PC_KANJI2)
buf->pos--;
+#endif /* JP_CHARSET */
}
cpos = COLPOS(l, buf->pos);
buf->visualpos = cpos - buf->currentColumn;
This archive was generated by hypermail 2b29 : Fri Aug 04 2000 - 14:33:29 CDT