Fix syntax error
This commit is contained in:
parent
2e40e028b5
commit
73023d0abd
1 changed files with 3 additions and 2 deletions
5
vip.c
5
vip.c
|
@ -877,13 +877,14 @@ void update_highlight(row_t *row)
|
||||||
/* Check for function */
|
/* Check for function */
|
||||||
int word_len = 0;
|
int word_len = 0;
|
||||||
while (!is_separator(row->render[i])) {
|
while (!is_separator(row->render[i])) {
|
||||||
word_len++ = row->render[i++];
|
word_len++;
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
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 = is_seperator(row->render[i]);
|
prev_sep = is_separator(row->render[i]);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue