Fix after deleted unused variable

This commit is contained in:
Night Kaly 2024-11-09 12:31:39 +00:00
parent dccef3d081
commit 8a6dd74ac0
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM

2
vip.c
View file

@ -585,7 +585,6 @@ void draw_rows(void)
} else if (hl[j] == NORMAL) { } else if (hl[j] == NORMAL) {
if (strncmp(current_color, WHITE_BG, COLOR_LEN)) { if (strncmp(current_color, WHITE_BG, COLOR_LEN)) {
memcpy(current_color, WHITE_BG, COLOR_LEN); memcpy(current_color, WHITE_BG, COLOR_LEN);
current_color_len = COLOR_LEN;
bprintf(WHITE_BG); bprintf(WHITE_BG);
} }
bprintf("%c", c[j]); bprintf("%c", c[j]);
@ -594,7 +593,6 @@ void draw_rows(void)
char *color = syntax_to_color(hl[j], &len); char *color = syntax_to_color(hl[j], &len);
if (strncmp(current_color, color, len)) { if (strncmp(current_color, color, len)) {
memcpy(current_color, color, len); memcpy(current_color, color, len);
current_color_len = len;
bprintf(color); bprintf(color);
} }
free(color); free(color);