diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-06 02:44:20 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-01-13 16:39:38 +0100 |
commit | fff68dccd916ed9fda52e6fc50c157f0ba7fde4d (patch) | |
tree | 84b281acceabaafd3979093ff12ea2013706775b | |
parent | 61ec31cde1373033179985f737b55e05cc1a2df7 (diff) | |
download | rneovim-fff68dccd916ed9fda52e6fc50c157f0ba7fde4d.tar.gz rneovim-fff68dccd916ed9fda52e6fc50c157f0ba7fde4d.tar.bz2 rneovim-fff68dccd916ed9fda52e6fc50c157f0ba7fde4d.zip |
PVS/V560: expression is always true
-rw-r--r-- | src/nvim/cursor.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |