mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -4328,7 +4328,7 @@ static void syn_cmd_region(exarg_T *eap, int syncing)
|
||||
|
||||
if (item == ITEM_MATCHGROUP) {
|
||||
p = skiptowhite(rest);
|
||||
if ((p - rest == 4 && STRNCMP(rest, "NONE", 4) == 0) || eap->skip) {
|
||||
if ((p - rest == 4 && strncmp(rest, "NONE", 4) == 0) || eap->skip) {
|
||||
matchgroup_id = 0;
|
||||
} else {
|
||||
matchgroup_id = syn_check_group(rest, (size_t)(p - rest));
|
||||
@@ -4765,7 +4765,7 @@ static char *get_syn_pattern(char *arg, synpat_T *ci)
|
||||
end++;
|
||||
do {
|
||||
for (idx = SPO_COUNT; --idx >= 0;) {
|
||||
if (STRNCMP(end, spo_name_tab[idx], 3) == 0) {
|
||||
if (strncmp(end, spo_name_tab[idx], 3) == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -4854,10 +4854,10 @@ static void syn_cmd_sync(exarg_T *eap, int syncing)
|
||||
} else if (!eap->skip) {
|
||||
curwin->w_s->b_syn_sync_id = (int16_t)syn_name2id("Comment");
|
||||
}
|
||||
} else if (STRNCMP(key, "LINES", 5) == 0
|
||||
|| STRNCMP(key, "MINLINES", 8) == 0
|
||||
|| STRNCMP(key, "MAXLINES", 8) == 0
|
||||
|| STRNCMP(key, "LINEBREAKS", 10) == 0) {
|
||||
} else if (strncmp(key, "LINES", 5) == 0
|
||||
|| strncmp(key, "MINLINES", 8) == 0
|
||||
|| strncmp(key, "MAXLINES", 8) == 0
|
||||
|| strncmp(key, "LINEBREAKS", 10) == 0) {
|
||||
if (key[4] == 'S') {
|
||||
arg_end = key + 6;
|
||||
} else if (key[0] == 'L') {
|
||||
|
Reference in New Issue
Block a user