mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.2021: Coverity complains about change in charset (#25634)
Problem: Coverity complains about change in charset (after v9.0.2017)
Solution: check pointer t at index 0
closes: vim/vim#13322
cd6ee69358
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
57ce9b6a92
commit
99b1163b5a
@ -345,7 +345,7 @@ int win_lbr_chartabsize(chartabsize_T *cts, int *headp)
|
||||
// needs a break here
|
||||
if (wp->w_p_lbr && wp->w_p_wrap && wp->w_width_inner != 0) {
|
||||
char *t = cts->cts_line;
|
||||
while (vim_isbreak((uint8_t)(*t))) {
|
||||
while (vim_isbreak((uint8_t)t[0])) {
|
||||
t++;
|
||||
}
|
||||
vcol_start = (colnr_T)(t - cts->cts_line);
|
||||
|
Loading…
Reference in New Issue
Block a user