patch 9.0.2021: Coverity complains about change in charset

Commit: 
https://github.com/vim/vim/commit/cd6ee6935811ab223605a3f39a550d26a617867d
Author: Christian Brabandt <[email protected]>
Date:   Sat Oct 14 11:29:28 2023 +0200

    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]>

diff --git a/src/charset.c b/src/charset.c
index 50a81cccd..bda3f911b 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -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;
     }
diff --git a/src/version.c b/src/version.c
index afcdadfbb..2c9354634 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2021,
 /**/
     2020,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qrbCh-005ADW-Fb%40256bit.org.

Raspunde prin e-mail lui