aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/drawline.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-21 06:02:53 +0800
committerGitHub <noreply@github.com>2022-09-21 06:02:53 +0800
commit585ab2564ada61c03443ed8f5709d2e5c8e0812a (patch)
treef7e0441f881d961215ceca32b621ce6dfec78765 /src/nvim/drawline.c
parentec94014cd1d09884b12cb19021d5a1eff52cb76d (diff)
downloadrneovim-585ab2564ada61c03443ed8f5709d2e5c8e0812a.tar.gz
rneovim-585ab2564ada61c03443ed8f5709d2e5c8e0812a.tar.bz2
rneovim-585ab2564ada61c03443ed8f5709d2e5c8e0812a.zip
refactor: suppress PVS false positives (#20264)
Some V512 warnings have changed to V1086, and PVS apparently does not know `uv_run()` can change `*timeout_expired`.
Diffstat (limited to 'src/nvim/drawline.c')
-rw-r--r--src/nvim/drawline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c
index 9de8b9996a..25ea2e1000 100644
--- a/src/nvim/drawline.c
+++ b/src/nvim/drawline.c
@@ -894,7 +894,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange,
} else {
// Long line, use only the last SPWORDLEN bytes.
nextlinecol = (int)v - SPWORDLEN;
- memmove(nextline, line + nextlinecol, SPWORDLEN); // -V512
+ memmove(nextline, line + nextlinecol, SPWORDLEN); // -V1086
nextline_idx = SPWORDLEN + 1;
}
}