mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user