0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00

patch 9.1.0177: Coverity reports dead code

Problem:  Coverity reports dead code.
Solution: Remove the dead code. Also fix a mistake in ml_get_pos_len()
          and update some comments (zeertzjq).

closes: #14189

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-03-13 20:42:26 +01:00
committed by Christian Brabandt
parent 253ff4dece
commit 8c55d60658
7 changed files with 29 additions and 23 deletions

View File

@@ -508,7 +508,6 @@ spell_suggest(int count)
++badlen;
end_visual_mode();
// make sure we don't include the NUL at the end of the line
line = ml_get_curline();
if (badlen > ml_get_curline_len() - (int)curwin->w_cursor.col)
badlen = ml_get_curline_len() - (int)curwin->w_cursor.col;
}