0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.0.2021: Coverity complains about change in charset

Problem:  Coverity complains about change in charset (after v9.0.2017)
Solution: check pointer t at index 0

closes: #13322

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2023-10-14 11:29:28 +02:00
parent 5ae6f9985e
commit cd6ee69358
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 3 additions and 1 deletions

View File

@ -1348,7 +1348,7 @@ win_lbr_chartabsize(
if (wp->w_p_lbr && wp->w_p_wrap && wp->w_width != 0)
{
char_u *t = cts->cts_line;
while (VIM_ISBREAK((int)*t))
while (VIM_ISBREAK((int)t[0]))
t++;
vcol_start = t - cts->cts_line;
}

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2021,
/**/
2020,
/**/