aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/highlight.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-03-09 21:19:37 +0100
committerDundar Göc <gocdundar@gmail.com>2022-03-10 09:14:12 +0100
commit7e3bdc75e44b9139d8afaea4381b53ae78b15746 (patch)
tree47547273268e887fa59b5529d6afde46772a7254 /src/nvim/highlight.c
parentd0cb8744d84822209edd0ac242f2400c784e6dc5 (diff)
downloadrneovim-7e3bdc75e44b9139d8afaea4381b53ae78b15746.tar.gz
rneovim-7e3bdc75e44b9139d8afaea4381b53ae78b15746.tar.bz2
rneovim-7e3bdc75e44b9139d8afaea4381b53ae78b15746.zip
refactor(uncrustify): format all c files
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r--src/nvim/highlight.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c
index a1fd0d0d66..3aa9190db6 100644
--- a/src/nvim/highlight.c
+++ b/src/nvim/highlight.c
@@ -819,9 +819,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);
@@ -906,7 +906,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