Skip to content

Commit cd6ee69

Browse files
committed
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 <[email protected]>
1 parent 5ae6f99 commit cd6ee69

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/charset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ win_lbr_chartabsize(
13481348
if (wp->w_p_lbr && wp->w_p_wrap && wp->w_width != 0)
13491349
{
13501350
char_u *t = cts->cts_line;
1351-
while (VIM_ISBREAK((int)*t))
1351+
while (VIM_ISBREAK((int)t[0]))
13521352
t++;
13531353
vcol_start = t - cts->cts_line;
13541354
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
2021,
707709
/**/
708710
2020,
709711
/**/

0 commit comments

Comments
 (0)