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:
dundargoc
2023-11-16 10:59:11 +01:00
committed by dundargoc
parent ec79ff893d
commit a6e3d93421
59 changed files with 318 additions and 377 deletions

View File

@@ -426,8 +426,8 @@ EXTERN win_T *prevwin INIT( = NULL); // previous window
FOR_ALL_WINDOWS_IN_TAB(wp, tp)
#define FOR_ALL_WINDOWS_IN_TAB(wp, tp) \
for (win_T *wp = ((tp) == curtab) \
? firstwin : (tp)->tp_firstwin; wp != NULL; wp = wp->w_next)
for (win_T *wp = ((tp) == curtab) ? firstwin : (tp)->tp_firstwin; \
wp != NULL; wp = wp->w_next)
EXTERN win_T *curwin; // currently active window