Path: blob/main/chinese/bitchx/files/patch-source__screen.c
16461 views
--- source/screen.c~ Mon Jan 8 15:06:18 20011+++ source/screen.c Mon Jan 8 15:05:53 20012@@ -548,6 +548,15 @@34default:5{6+#ifdef WANT_BIG57+ if (is_big5((char)*ptr,(char)*(ptr+1)))8+ {9+ buffer[pos++] = *ptr++;10+ col++ ;11+ if ( col + 2 >= max_cols )12+ word_break = pos-1 ;13+ }14+#endif15if (*ptr == ' ' || strchr(words, *ptr))16{17if (indent == 0)18@@ -586,7 +595,14 @@19if (!word_break || (flags & PREPARE_NOWRAP))20word_break = max_cols /*pos - 1*/;21else if (col > max_cols)22+#ifdef WANT_BIG523+ if (is_big5((char)buffer[pos-2], (char)buffer[pos-1]))24+ word_break = pos -2 ;25+ else26+ word_break = pos -1 ;27+#else28word_break = pos - 1;29+#endif3031/*32* XXXX Massive hackwork here.333435