From fff68dccd916ed9fda52e6fc50c157f0ba7fde4d Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 6 Jan 2019 02:44:20 +0100 Subject: PVS/V560: expression is always true --- src/nvim/cursor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index 409eb653a0..6c1bd01ff5 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -394,7 +394,8 @@ void check_cursor_col_win(win_T *win) // Make sure that coladd is not more than the char width. // Not for the last character, coladd is then used when the cursor // is actually after the last character. - if (win->w_cursor.col + 1 < len && win->w_cursor.coladd > 0) { + if (win->w_cursor.col + 1 < len) { + assert(win->w_cursor.coladd > 0); int cs, ce; getvcol(win, &win->w_cursor, &cs, NULL, &ce); -- cgit