diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-03-11 15:07:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 15:07:49 +0100 |
commit | c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7 (patch) | |
tree | 58a30205195dc158140f6cc4501349cb819ecfe0 /src/nvim/highlight.c | |
parent | c3a6ff6aa3be259255976b1178dd07ac876ff124 (diff) | |
parent | 7e3bdc75e44b9139d8afaea4381b53ae78b15746 (diff) | |
download | rneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.tar.gz rneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.tar.bz2 rneovim-c2ab922f0a6ac2f11ab3d706ca5bc097fdac4dd7.zip |
Merge pull request #17663 from dundargoc/refactor/uncrustify
refactor: apply uncrustify
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index 2e6947d2e0..abbda1e9fa 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -820,9 +820,9 @@ HlAttrs dict2hlattrs(Dict(highlight) *dict, bool use_rgb, int *link_id, Error *e bool cterm_mask_provided = false; #define CHECK_FLAG(d, m, name, extra, flag) \ - if (api_object_to_bool(d->name ## extra, #name, false, err)) { \ - m = m | flag; \ - } + if (api_object_to_bool(d->name##extra, #name, false, err)) { \ + m = m | flag; \ + } CHECK_FLAG(dict, mask, bold, , HL_BOLD); CHECK_FLAG(dict, mask, standout, , HL_STANDOUT); @@ -907,7 +907,6 @@ HlAttrs dict2hlattrs(Dict(highlight) *dict, bool use_rgb, int *link_id, Error *e CHECK_FLAG(cterm, cterm_mask, reverse, , HL_INVERSE); CHECK_FLAG(cterm, cterm_mask, strikethrough, , HL_STRIKETHROUGH); CHECK_FLAG(cterm, cterm_mask, nocombine, , HL_NOCOMBINE); - } else if (dict->cterm.type == kObjectTypeArray && dict->cterm.data.array.size == 0) { // empty list from Lua API should clear all cterm attributes // TODO(clason): handle via gen_api_dispatch |