From 6f5904ecf67945784ad704643590508bf1a47185 Mon Sep 17 00:00:00 2001 From: night0721 Date: Sun, 27 Oct 2024 01:37:40 +0000 Subject: [PATCH] Fix indentation --- src/syntax.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/syntax.c b/src/syntax.c index 11ced68..02cb594 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -168,20 +168,20 @@ char *syntax_to_color(int hl, size_t *len) return strdup(YELLOW_BG); case MATCH:; - char *str = malloc(COLOR_LEN * 2 + 1); - snprintf(str, COLOR_LEN * 2 + 1, "%s%s", BLACK_BG, SKY_FG); - *len = COLOR_LEN * 2; - return str; + char *str = malloc(COLOR_LEN * 2 + 1); + snprintf(str, COLOR_LEN * 2 + 1, "%s%s", BLACK_BG, SKY_FG); + *len = COLOR_LEN * 2; + return str; case RESET:; - char *res = malloc(COLOR_LEN * 2 + 1); - snprintf(res, COLOR_LEN * 2 + 1, "%s%s", WHITE_BG, BLACK_FG); - *len = COLOR_LEN * 2; - return res; + char *res = malloc(COLOR_LEN * 2 + 1); + snprintf(res, COLOR_LEN * 2 + 1, "%s%s", WHITE_BG, BLACK_FG); + *len = COLOR_LEN * 2; + return res; default: - *len = COLOR_LEN; - return strdup(WHITE_BG); + *len = COLOR_LEN; + return strdup(WHITE_BG); } }