diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-04 13:11:39 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-04 13:11:39 +0000 |
commit | dd3977367fa50d5f0d4fdb86534bb70415eeaa65 (patch) | |
tree | 988e6d41007b33fe872fa7d50fe1073fba9f50e5 /src/gui/curses/gui-display.c | |
parent | 8a9e8ecc885fe254234a42b692f8c2e20d5c24a5 (diff) | |
download | weechat-dd3977367fa50d5f0d4fdb86534bb70415eeaa65.zip |
Fixed log problem with new color display system (now color codes are removed in
log file)
Diffstat (limited to 'src/gui/curses/gui-display.c')
-rw-r--r-- | src/gui/curses/gui-display.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c index bc9708367..9addeeab0 100644 --- a/src/gui/curses/gui-display.c +++ b/src/gui/curses/gui-display.c @@ -238,6 +238,18 @@ gui_color_decode (unsigned char *string, int keep_colors) } } break; + case GUI_ATTR_WEECHAT_COLOR_CHAR: + string++; + if (isdigit (string[0]) && isdigit (string[1])) + { + if (keep_colors) + { + out[out_pos++] = string[0]; + out[out_pos++] = string[1]; + } + string += 2; + } + break; case GUI_ATTR_WEECHAT_SET_CHAR: case GUI_ATTR_WEECHAT_REMOVE_CHAR: string++; |