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

@@ -491,7 +491,7 @@ fmark_T *mark_get_visual(buf_T *buf, int name)
mark = pos_to_mark(buf, NULL, endp);
}
if (mark != NULL && buf->b_visual.vi_mode == 'V') {
if (buf->b_visual.vi_mode == 'V') {
if (name == '<') {
mark->mark.col = 0;
} else {