aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-24 18:37:23 +0100
committerGitHub <noreply@github.com>2022-03-24 18:37:23 +0100
commit39af40580a1788b4569c66aa710330f50707e976 (patch)
tree8e672501316a3427feb78331456aae623fa90af9
parent27fccb295cb7c61e4c310d1f2c2e8993aaa99ca2 (diff)
parent93e0d9b5560b6c37973c93785693e8e9a8a30567 (diff)
downloadrneovim-39af40580a1788b4569c66aa710330f50707e976.tar.gz
rneovim-39af40580a1788b4569c66aa710330f50707e976.tar.bz2
rneovim-39af40580a1788b4569c66aa710330f50707e976.zip
Merge pull request #17809 from dundargoc/PVS/V1019
fix(PVS/V1019): compound assignment expression is used inside condition
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index fc66fb5f06..4404ee7b80 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -3893,7 +3893,7 @@ void ex_display(exarg_T *eap)
msg_puts_attr("^J", attr);
n -= 2;
}
- for (p = yb->y_array[j]; *p && (n -= ptr2cells(p)) >= 0; p++) {
+ for (p = yb->y_array[j]; *p && (n -= ptr2cells(p)) >= 0; p++) { // -V1019
clen = utfc_ptr2len(p);
msg_outtrans_len(p, clen);
p += clen - 1;