term: tty: update hash api usage
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
static void apply_code_to_vmode(struct tty_format_buf *fmt)
|
static void apply_code_to_vmode(struct tty_format_buf *fmt)
|
||||||
{
|
{
|
||||||
const char *modifier = fmt->buf;
|
const char *modifier = fmt->buf;
|
||||||
uint64_t mod_hash = b_hash_string(modifier);
|
uint64_t mod_hash = b_hash_cstr(modifier);
|
||||||
|
|
||||||
if (COMPARE_MOD_NAME(modifier, "black", mod_hash, MOD_HASH_BLACK)) {
|
if (COMPARE_MOD_NAME(modifier, "black", mod_hash, MOD_HASH_BLACK)) {
|
||||||
fmt->vmode.v_fg.c_mode = B_TTY_COLOUR_16;
|
fmt->vmode.v_fg.c_mode = B_TTY_COLOUR_16;
|
||||||
|
|||||||
Reference in New Issue
Block a user