mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
refactor: enable formatting for ternaries
This requires removing the "Inner expression should be aligned" rule from clint as it prevents essentially any formatting regarding ternary operators.
This commit is contained in:
@@ -149,8 +149,8 @@ int sign_cmp(const void *p1, const void *p2)
|
||||
int n = s1->pos.row - s2->pos.row;
|
||||
|
||||
return n ? n : (n = s2->decor_full->priority - s1->decor_full->priority)
|
||||
? n : (n = (int)(s2->id - s1->id))
|
||||
? n : (s2->decor_full->sign_add_id - s1->decor_full->sign_add_id);
|
||||
? n : (n = (int)(s2->id - s1->id))
|
||||
? n : (s2->decor_full->sign_add_id - s1->decor_full->sign_add_id);
|
||||
}
|
||||
|
||||
/// Delete the specified signs
|
||||
|
Reference in New Issue
Block a user