aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/spell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/lua/spell.c')
-rw-r--r--src/nvim/lua/spell.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/lua/spell.c b/src/nvim/lua/spell.c
index 2575c3d95d..8f4a684219 100644
--- a/src/nvim/lua/spell.c
+++ b/src/nvim/lua/spell.c
@@ -65,11 +65,11 @@ int nlua_spell_check(lua_State *lstate)
lua_pushlstring(lstate, str, len);
lua_rawseti(lstate, -2, 1);
- result = attr == HLF_SPB ? "bad" :
- attr == HLF_SPR ? "rare" :
- attr == HLF_SPL ? "local" :
- attr == HLF_SPC ? "caps" :
- NULL;
+ result = attr == HLF_SPB
+ ? "bad" : (attr == HLF_SPR
+ ? "rare" : (attr == HLF_SPL
+ ? "local" : (attr == HLF_SPC
+ ? "caps" : NULL)));
assert(result != NULL);