Fix indentation

This commit is contained in:
Night Kaly 2024-10-27 01:37:40 +00:00
parent 81581b1905
commit 6f5904ecf6
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM

View file

@ -168,20 +168,20 @@ char *syntax_to_color(int hl, size_t *len)
return strdup(YELLOW_BG); return strdup(YELLOW_BG);
case MATCH:; case MATCH:;
char *str = malloc(COLOR_LEN * 2 + 1); char *str = malloc(COLOR_LEN * 2 + 1);
snprintf(str, COLOR_LEN * 2 + 1, "%s%s", BLACK_BG, SKY_FG); snprintf(str, COLOR_LEN * 2 + 1, "%s%s", BLACK_BG, SKY_FG);
*len = COLOR_LEN * 2; *len = COLOR_LEN * 2;
return str; return str;
case RESET:; case RESET:;
char *res = malloc(COLOR_LEN * 2 + 1); char *res = malloc(COLOR_LEN * 2 + 1);
snprintf(res, COLOR_LEN * 2 + 1, "%s%s", WHITE_BG, BLACK_FG); snprintf(res, COLOR_LEN * 2 + 1, "%s%s", WHITE_BG, BLACK_FG);
*len = COLOR_LEN * 2; *len = COLOR_LEN * 2;
return res; return res;
default: default:
*len = COLOR_LEN; *len = COLOR_LEN;
return strdup(WHITE_BG); return strdup(WHITE_BG);
} }
} }