Changeset c1522ec
- Timestamp:
- Jan 12, 2008, 1:18:20 AM (17 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- f92080c
- Parents:
- 62fdd29
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
r16c6cca rc1522ec 36 36 } 37 37 38 int _owl_fmtext_is_format_char(gunichar c) /*noproto*/38 int owl_fmtext_is_format_char(gunichar c) 39 39 { 40 40 if ((c & ~OWL_FMTEXT_UC_ATTR_MASK) == OWL_FMTEXT_UC_ATTR) return 1; … … 295 295 p = strchr(s, OWL_FMTEXT_UC_STARTBYTE_UTF8); 296 296 while(p) { 297 if ( _owl_fmtext_is_format_char(g_utf8_get_char(p))) {297 if (owl_fmtext_is_format_char(g_utf8_get_char(p))) { 298 298 /* Deal with all text from last insert to here. */ 299 299 char tmp; … … 337 337 fg = f->default_fgcolor; 338 338 bg = f->default_bgcolor; 339 while (p && _owl_fmtext_is_format_char(g_utf8_get_char(p))) {339 while (p && owl_fmtext_is_format_char(g_utf8_get_char(p))) { 340 340 _owl_fmtext_update_attributes(g_utf8_get_char(p), &attr, &fg, &bg); 341 341 p = g_utf8_next_char(p); … … 439 439 while(ptr_c < ptr_e) { 440 440 gunichar c = g_utf8_get_char(ptr_c); 441 if (! _owl_fmtext_is_format_char(c)) {441 if (!owl_fmtext_is_format_char(c)) { 442 442 chwidth = mk_wcwidth(c); 443 443 if (col + chwidth > bcol) break; -
util.c
r7b1d048 rc1522ec 775 775 /* If it's a format character, copy up to it, and skip all 776 776 immediately following format characters. */ 777 if ( _owl_fmtext_is_format_char(g_utf8_get_char(p))) {777 if (owl_fmtext_is_format_char(g_utf8_get_char(p))) { 778 778 strncat(r, s, p-s); 779 779 p = g_utf8_next_char(p); 780 while (p && _owl_fmtext_is_format_char(g_utf8_get_char(p))) {780 while (p && owl_fmtext_is_format_char(g_utf8_get_char(p))) { 781 781 p = g_utf8_next_char(p); 782 782 }
Note: See TracChangeset
for help on using the changeset viewer.