mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue