aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/arglist.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-16 10:59:11 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-20 19:57:09 +0100
commita6e3d93421ba13c407a96fac9cc01fa41ec7ad98 (patch)
treee84209969b11fe2f0dabcad00a271468b2199bc9 /src/nvim/arglist.c
parentec79ff893d5906e1f0d90953cffa535ffae47823 (diff)
downloadrneovim-a6e3d93421ba13c407a96fac9cc01fa41ec7ad98.tar.gz
rneovim-a6e3d93421ba13c407a96fac9cc01fa41ec7ad98.tar.bz2
rneovim-a6e3d93421ba13c407a96fac9cc01fa41ec7ad98.zip
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.
Diffstat (limited to 'src/nvim/arglist.c')
-rw-r--r--src/nvim/arglist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/arglist.c b/src/nvim/arglist.c
index 433032fbf9..634f90bacf 100644
--- a/src/nvim/arglist.c
+++ b/src/nvim/arglist.c
@@ -858,8 +858,8 @@ static void arg_all_close_unused_windows(arg_all_state_T *aall)
for (win_T *wp = lastwin->w_floating ? lastwin : firstwin; wp != NULL; wp = wpnext) {
int i;
wpnext = wp->w_floating
- ? wp->w_prev->w_floating ? wp->w_prev : firstwin
- : (wp->w_next == NULL || wp->w_next->w_floating) ? NULL : wp->w_next;
+ ? wp->w_prev->w_floating ? wp->w_prev : firstwin
+ : (wp->w_next == NULL || wp->w_next->w_floating) ? NULL : wp->w_next;
buf_T *buf = wp->w_buffer;
if (buf->b_ffname == NULL
|| (!aall->keep_tabs