diff options
author | dundargoc <gocdundar@gmail.com> | 2023-10-20 15:10:33 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-10-23 20:06:21 +0200 |
commit | 5f03a1eaabfc8de2b3a9c666fcd604763f41e152 (patch) | |
tree | 2a4e38bf7ac44749bd876d5e4d822f8ac604c2ae /src/nvim/highlight.c | |
parent | e606604322815abd3dc91a5595a0aa976a9aded7 (diff) | |
download | rneovim-5f03a1eaabfc8de2b3a9c666fcd604763f41e152.tar.gz rneovim-5f03a1eaabfc8de2b3a9c666fcd604763f41e152.tar.bz2 rneovim-5f03a1eaabfc8de2b3a9c666fcd604763f41e152.zip |
build(lint): remove unnecessary clint.py rules
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index 337f9e968d..88bf5dbd6e 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -478,7 +478,7 @@ int hl_get_underline(void) /// Get attribute code for forwarded :terminal highlights. int hl_get_term_attr(HlAttrs *aep) { - return get_attr_entry((HlEntry){ .attr= *aep, .kind = kHlTerminal, + return get_attr_entry((HlEntry){ .attr = *aep, .kind = kHlTerminal, .id1 = 0, .id2 = 0 }); } @@ -842,7 +842,7 @@ void hlattrs2dict(Dictionary *hl, Dictionary *hl_attrs, HlAttrs ae, bool use_rgb hl_attrs = hl_attrs ? hl_attrs : hl; assert(hl->capacity >= HLATTRS_DICT_SIZE); // at most 16 items assert(hl_attrs->capacity >= HLATTRS_DICT_SIZE); // at most 16 items - int mask = use_rgb ? ae.rgb_ae_attr : ae.cterm_ae_attr; + int mask = use_rgb ? ae.rgb_ae_attr : ae.cterm_ae_attr; if (mask & HL_INVERSE) { PUT_C(*hl_attrs, "reverse", BOOLEAN_OBJ(true)); |