0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.2.4610: some conditions are always true

Problem:    Some conditions are always true.
Solution:   Remove the useless conditions. (closes #9993)
This commit is contained in:
Bram Moolenaar
2022-03-22 20:42:12 +00:00
parent 6f2465d336
commit fe154990c1
13 changed files with 18 additions and 23 deletions

View File

@@ -596,7 +596,7 @@ 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)
{
int cs, ce;