From 02efdb4d587242122df99b347a25fd4c96b0ca97 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 29 Jul 2022 14:44:18 +0800 Subject: refactor: fix clang and PVS warnings (#19569) The last commit didn't actually disable V1028 because of a typo. Fix the typo so it is actually disabled. --- src/nvim/normal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 92a4b00cd0..e3bd4de9a0 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -2481,7 +2481,7 @@ size_t find_ident_at_pos(win_T *wp, linenr_T lnum, colnr_T startcol, char_u **te col = 0; // Search for point of changing multibyte character class. this_class = mb_get_class(ptr); - while (ptr[col] != NUL + while (ptr[col] != NUL // -V781 && ((i == 0 ? mb_get_class(ptr + col) == this_class : mb_get_class(ptr + col) != 0) -- cgit