aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Antonov <ngortheone@users.noreply.github.com>2019-07-15 04:47:35 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-07-15 10:47:35 +0200
commit5a32db9ad48670ec3d07307f0a61496ec30f2cbd (patch)
tree3222461ac07f1eb22c3e4aa3d8b0ec0fe0400657
parent78f36fcf8c37bd51d81e9cf17de588a704a29769 (diff)
downloadrneovim-5a32db9ad48670ec3d07307f0a61496ec30f2cbd.tar.gz
rneovim-5a32db9ad48670ec3d07307f0a61496ec30f2cbd.tar.bz2
rneovim-5a32db9ad48670ec3d07307f0a61496ec30f2cbd.zip
PVS/V547: expression is always false #10511
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index a007aa9a47..63a465f332 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -3778,7 +3778,7 @@ win_line (
* At end of the text line or just after the last character.
*/
if (c == NUL) {
- long prevcol = (long)(ptr - line) - (c == NUL);
+ long prevcol = (long)(ptr - line) - 1;
/* we're not really at that column when skipping some text */
if ((long)(wp->w_p_wrap ? wp->w_skipcol : wp->w_leftcol) > prevcol)