mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor(PVS): suppress false positive V547 in drawline.c (#21875)
This is a false positive as "did_emsg" can be set by get_syntax_attr() Example: get_syntax_attr() -> syn_current_attr() -> syn_getcurline() -> ml_get_buf() -> siemsg() -> semsgv() -> emsg() -> emsg_multiline()
This commit is contained in:
parent
0133fbb37a
commit
2082d275fe
@ -1824,7 +1824,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange,
|
||||
syntax_attr = get_syntax_attr((colnr_T)v - 1,
|
||||
has_spell ? &can_spell : NULL, false);
|
||||
|
||||
if (did_emsg) {
|
||||
if (did_emsg) { // -V547
|
||||
wp->w_s->b_syn_error = true;
|
||||
has_syntax = false;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user