From 73023d0abdc5f0e2b0d720a94827c79a4763ffd6 Mon Sep 17 00:00:00 2001 From: night0721 Date: Tue, 12 Nov 2024 10:21:31 +0000 Subject: [PATCH] Fix syntax error --- vip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vip.c b/vip.c index c840206..72b9ea5 100644 --- a/vip.c +++ b/vip.c @@ -877,13 +877,14 @@ void update_highlight(row_t *row) /* Check for function */ int word_len = 0; while (!is_separator(row->render[i])) { - word_len++ = row->render[i++]; + word_len++; + i++; } if (row->render[i] == '(') { memset(&row->hl[i - word_len], KW_FN, word_len); prev_sep = 1; } else { - prev_sep = is_seperator(row->render[i]); + prev_sep = is_separator(row->render[i]); } continue; }