diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-29 14:44:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-29 14:44:18 +0800 |
| commit | 02efdb4d587242122df99b347a25fd4c96b0ca97 (patch) | |
| tree | 71d3712b243a728ba933dd845f4c0f690cd8be6d /src/nvim/normal.c | |
| parent | 0b8bade493235cda9d8ab3ed138d6c94d7cef759 (diff) | |
| download | rneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.tar.gz rneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.tar.bz2 rneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.zip | |
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.
Diffstat (limited to 'src/nvim/normal.c')
| -rw-r--r-- | src/nvim/normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |