1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

irc: use color code 0x1F (ctrl-_) for underlined text in input line (same code as messages) (bug #40756)

This commit is contained in:
Sebastien Helleu
2013-12-01 18:34:40 +01:00
parent d3799b4616
commit 0c48b7ab8b
2 changed files with 9 additions and 7 deletions
+6 -6
View File
@@ -308,7 +308,7 @@ irc_color_decode_for_user_entry (const char *string)
ptr_string++;
break;
case IRC_COLOR_UNDERLINE_CHAR:
out[out_pos++] = 0x15;
out[out_pos++] = 0x1F;
ptr_string++;
break;
case IRC_COLOR_COLOR_CHAR:
@@ -404,16 +404,16 @@ irc_color_encode (const char *string, int keep_colors)
out[out_pos++] = IRC_COLOR_RESET_CHAR;
ptr_string++;
break;
case 0x15: /* ^U */
if (keep_colors)
out[out_pos++] = IRC_COLOR_UNDERLINE_CHAR;
ptr_string++;
break;
case 0x16: /* ^V */
if (keep_colors)
out[out_pos++] = IRC_COLOR_REVERSE_CHAR;
ptr_string++;
break;
case 0x1F: /* ^_ */
if (keep_colors)
out[out_pos++] = IRC_COLOR_UNDERLINE_CHAR;
ptr_string++;
break;
default:
length = weechat_utf8_char_size ((char *)ptr_string);
if (length == 0)