Remove unused variable

This commit is contained in:
Night Kaly 2024-11-12 10:20:04 +00:00
parent a314757011
commit 2e40e028b5
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM

7
vip.c
View file

@ -875,18 +875,15 @@ void update_highlight(row_t *row)
continue; continue;
} }
/* Check for function */ /* Check for function */
/* Assume maximum function name is 128 characters */
char word[128];
int word_len = 0; int word_len = 0;
while (!is_separator(row->render[i])) { while (!is_separator(row->render[i])) {
word[word_len++] = row->render[i++]; word_len++ = row->render[i++];
} }
word[word_len] = '\0';
if (row->render[i] == '(') { if (row->render[i] == '(') {
memset(&row->hl[i - word_len], KW_FN, word_len); memset(&row->hl[i - word_len], KW_FN, word_len);
prev_sep = 1; prev_sep = 1;
} else { } else {
prev_sep = 0; prev_sep = is_seperator(row->render[i]);
} }
continue; continue;
} }