aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Antonov <ngortheone@users.noreply.github.com>2019-07-22 13:45:59 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-07-22 19:45:59 +0200
commit324dc0dbc090cbdef672adc50108b96de9369706 (patch)
tree64b81ff379ac75f0fd255823be5804485d163639
parent1e2af5e39da9a5d0cc0e6940de343ef3f70cd8d0 (diff)
downloadrneovim-324dc0dbc090cbdef672adc50108b96de9369706.tar.gz
rneovim-324dc0dbc090cbdef672adc50108b96de9369706.tar.bz2
rneovim-324dc0dbc090cbdef672adc50108b96de9369706.zip
PVS/V1019: "readability" warning #10566
-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 29609def89..40c96eb333 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -3439,7 +3439,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 = (*mb_ptr2len)(p);
msg_outtrans_len(p, clen);
p += clen - 1;