vim-patch:8.1.1032: warnings from clang static analyzer

Problem:    Warnings from clang static analyzer. (Yegappan Lakshmanan)
Solution:   Fix relevant warnings.
2c519cf3bf
This commit is contained in:
Jan Edmund Lazo
2020-12-28 16:35:20 -05:00
parent 0e913a0812
commit 26dfeb42dd
6 changed files with 7 additions and 11 deletions

View File

@@ -3883,8 +3883,8 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow,
/* check if line ends before left margin */
if (vcol < v + col - win_col_off(wp))
vcol = v + col - win_col_off(wp);
/* Get rid of the boguscols now, we want to draw until the right
* edge for 'cursorcolumn'. */
// Get rid of the boguscols now, we want to draw until the right
// edge for 'cursorcolumn'.
col -= boguscols;
// boguscols = 0; // Disabled because value never read after this