mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Print the color hilight with two digits so it won't accidentally use the
next char if it's numeric. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1174 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b24243e45a
commit
9044226d6e
@ -313,7 +313,10 @@ char *hilight_get_color(HILIGHT_REC *rec, int activity)
|
||||
color = number;
|
||||
}
|
||||
|
||||
return g_strconcat(isdigit(*color) ? "\003" : "", color, NULL);
|
||||
if (is_numeric(color, 0))
|
||||
return g_strdup_printf("\003%02d", atoi(color));
|
||||
|
||||
return g_strdup(color);
|
||||
}
|
||||
|
||||
static void hilight_update_text_dest(TEXT_DEST_REC *dest, HILIGHT_REC *rec)
|
||||
|
Loading…
Reference in New Issue
Block a user