From 2e40e028b5782c189ec5ae38783bc541c9919e4c Mon Sep 17 00:00:00 2001 From: night0721 Date: Tue, 12 Nov 2024 10:20:04 +0000 Subject: [PATCH] Remove unused variable --- vip.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vip.c b/vip.c index 9465b3a..c840206 100644 --- a/vip.c +++ b/vip.c @@ -875,18 +875,15 @@ void update_highlight(row_t *row) continue; } /* Check for function */ - /* Assume maximum function name is 128 characters */ - char word[128]; int word_len = 0; 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] == '(') { memset(&row->hl[i - word_len], KW_FN, word_len); prev_sep = 1; } else { - prev_sep = 0; + prev_sep = is_seperator(row->render[i]); } continue; }