PVS/V547: expression is always false #10511

This commit is contained in:
Ihor Antonov 2019-07-15 04:47:35 -04:00 committed by Justin M. Keyes
parent 78f36fcf8c
commit 5a32db9ad4

View File

@ -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)