refactor: fix clang and PVS warnings (#19532)

This commit is contained in:
zeertzjq
2022-07-28 06:05:33 +08:00
committed by GitHub
parent 7d9e68669c
commit e0c433833f
9 changed files with 12 additions and 9 deletions

View File

@@ -5102,6 +5102,7 @@ static void nv_brackets(cmdarg_T *cap)
} else if (cap->nchar == '\'' || cap->nchar == '`') {
// "['", "[`", "]'" and "]`": jump to next mark
fmark_T *fm = pos_to_mark(curbuf, NULL, curwin->w_cursor);
assert(fm != NULL);
fmark_T *prev_fm;
for (n = cap->count1; n > 0; n--) {
prev_fm = fm;