From 5a32db9ad48670ec3d07307f0a61496ec30f2cbd Mon Sep 17 00:00:00 2001 From: Ihor Antonov Date: Mon, 15 Jul 2019 04:47:35 -0400 Subject: PVS/V547: expression is always false #10511 --- src/nvim/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit